当前位置:网站首页>使用 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 服务的诸多请求。



边栏推荐
- Applicable scenario of multi-master replication (2) - client and collaborative editing that require offline operation
- Snake Project (Simple)
- 2022年必读的12本机器学习书籍推荐
- 01 邂逅typescript,环境搭建
- Doing things software development - the importance of law and understanding of reasonable conclusions
- 【7.29】Code Source - 【Arrangement】【Stone Game II】【Cow and Snacks】【Minimum Number of Spawns】【Sequence】
- Implementing distributed locks based on Redis (SETNX), case: Solving oversold orders under high concurrency
- Matlab matrix basic operations (definition, operation)
- Oracle dynamically registers non-1521 ports
- Use of radiobutton
猜你喜欢

C语言”三子棋“升级版(模式选择+AI下棋)

The 2nd China PWA Developer Day

Qt实战案例(54)——利用QPixmap设计图片透明度

11 pinia使用

Visualize GraphQL schemas with GraphiQL

After Grafana is installed, the web opens and reports an error

定时器的类型

.NET 20th Anniversary Interview - Zhang Shanyou: How .NET technology empowers and changes the world

C语言-函数

BGP综合实验(建立对等体、路由反射器、联邦、路由宣告及聚合)
随机推荐
复杂高维医学数据挖掘与疾病风险分类研究
The arm button controls the flashing of the led light (embedded button experiment report)
第05章 存储引擎【1.MySQL架构篇】【MySQL高级】
How to switch remote server in gerrit
Doing things software development - the importance of law and understanding of reasonable conclusions
数据库的范式(第一范式,第二范式,第三范式,BCNF范式)「建议收藏」
[TypeScript] In-depth study of TypeScript type operations
LeetCode_733_图像渲染
Browser's built-in color picker
贪吃蛇项目(简单)
Dialogue with Zhuang Biaowei: The first lesson of open source
复制延迟案例(3)-单调读
Oracle dynamically registers non-1521 ports
基于C语言的编译器设计与实现
MySQL multi-table union query
多主复制的适用场景(1)-多IDC
WPF项目--控件入门基础用法,必知必会XAML
删除表格数据或清空表格
OPPO在FaaS领域的探索与思考
Tencent Cloud Deployment----DevOps