当前位置:网站首页>使用 Postman 工具高效管理和测试 SAP ABAP OData 服务的试读版
使用 Postman 工具高效管理和测试 SAP ABAP OData 服务的试读版
2022-07-31 15:55:00 【汪子熙】
正如本教程的开篇介绍文章SAP OData 开发教程 - 从入门到提高(包含 SEGW, RAP 和 CDP)所提到的,SAP OData 服务开发,从实现技术上来说,可以分为三大类。因此本教程也分为三大部分,分别进行介绍。本文是本教程的文章目录。
作者简介
Jerry Wang,2007 年从电子科技大学计算机专业硕士毕业后加入 SAP 成都研究院工作至今。Jerry 是 SAP 社区导师,SAP 中国技术大使。在长达 15 年的 SAP 标准产品开发生涯里,Jerry 曾经先后参与 SAP Business ByDesign, SAP CRM, SAP Cloud for Customer, SAP S/4HANA, SAP Commerce Cloud(电商云)等标准产品的研发工作。
Jerry 对 SAP OData 服务的开发,测试,发布,部署,测试,及基于各种不同 SAP 技术实现的 OData 服务的幕后技术实现细节和使用场合,均有着深入的研究。
基于 SEGW - Gateway Service Builder 的开发教程
使用 Restful ABAP Programming 编程模型(简称 RAP) 开发 OData 服务
- 正在写作中,敬请期待
使用 SAP Cloud Application Programming 编程模型开发 OData 服务
- 正在写作中,敬请期待
序言
本文介绍了 Postman 这个强大的 API 测试工具。当我们待测试的 SAP ABAP OData 服务需要通过 user Authentication 验证才能使用时,可以通过手动在 Postman HTTP 请求字段里添加 Authorization 信息,或者直接使用 Postman 的 auth 认证功能。同时还介绍了 Postman Environment 和 Variable 的使用方法,来维护与具体系统无关的 Postman 请求。
本教程之前的五篇文章,我们已经在事物码 SEGW 里完成了一个图书管理 OData 服务模型的创建,然后配置和部署到 ABAP 系统上。这个 OData 服务目前已经实现了下面三个基本的功能:
- 成功返回元数据
- 成功返回系统所有的图书数据
- 支持 OData 协议的 $filter 操作,根据传入的 book_id, 返回该 id 代表的图书数据
这三个功能,对应在 SAP ABAP Gateway Client(事物码 /IWFND/GW_CLIENT) 里的 url,分别为:
- /sap/opu/odata/sap/ZBOOK_MANAGE_SRV/$metadata
- /sap/opu/odata/sap/ZBOOK_MANAGE_SRV/BookCollection
- /sap/opu/odata/sap/ZBOOK_MANAGE_SRV/BookCollection?$filter=book_id eq ‘1001’
随着我们本教程学习的深入,我们使用的 url 会越来越多。因为 SAP ABAP Gateway Client 这个工具,在管理大量 url 的时候效率不高,因此我们有必要切换成另一个工具,这个工具要能够像 Gateway Client 一样能够发送 OData 请求的同时,还能够高效管理不同的 OData 请求的 Url.
笔者在实际工作中,使用的是 Postman.
本文会详细介绍如何使用 Postman 的 Collection,Environment 和 Variable 等概念,高效管理 SAP ABAP OData 服务的诸多请求。
边栏推荐
- Kubernetes principle analysis and practical application manual, too complete
- How to switch remote server in gerrit
- 复杂高维医学数据挖掘与疾病风险分类研究
- Bilateral filtering acceleration "recommended collection"
- 多主复制下处理写冲突(4)-多主复制拓扑
- Premiere Pro 2022 for (pr 2022)v22.5.0
- The normal form of the database (first normal form, second normal form, third normal form, BCNF normal form) "recommended collection"
- tensorflow2.0 cnn(layerwise)
- 6-22 Vulnerability exploit - postgresql database password cracking
- Emmet syntax
猜你喜欢
随机推荐
button控件的使用
Premiere Pro 2022 for (pr 2022)v22.5.0
【MySQL】Mysql范式及外键作用
LeetCode_733_图像渲染
Replication Latency Case (3) - Monotonic Read
[TypeScript] In-depth study of TypeScript type operations
Dialogue with Zhuang Biaowei: The first lesson of open source
Foreign media right, apple on May be true in inventory
Qt practical cases (54) - using transparency QPixmap design pictures
Implement anti-shake and throttling functions
LeetCode_733_Image rendering
mongo enters error
.NET 20周年专访 - 张善友:.NET 技术是如何赋能并改变世界的
【7.29】Code Source - 【Arrangement】【Stone Game II】【Cow and Snacks】【Minimum Number of Spawns】【Sequence】
Why is the field of hacking almost filled with boys?
The 2nd China PWA Developer Day
Deployment应用生命周期与Pod健康检查
11 pinia use
ML.NET相关资源整理
Applicable scenario of multi-master replication (2) - client and collaborative editing that require offline operation