当前位置:网站首页>6. 使用 Postman 工具高效管理和测试 SAP ABAP OData 服务
6. 使用 Postman 工具高效管理和测试 SAP ABAP OData 服务
2022-07-31 15:55:00 【汪子熙】
序言
本文介绍了 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 一样能够发送 ODat
边栏推荐
- Dialogue with Zhuang Biaowei: The first lesson of open source
- hough变换检测直线原理(opencv霍夫直线检测)
- After Grafana is installed, the web opens and reports an error
- Emmet syntax
- MySQL的相关问题
- 2022年必读的12本机器学习书籍推荐
- update data table update
- 2020 WeChat applet decompilation tutorial (can applet decompile source code be used)
- Applicable scenario of multi-master replication (2) - client and collaborative editing that require offline operation
- 外媒所言非虚,苹果降价或许是真的在清库存
猜你喜欢
外媒所言非虚,苹果降价或许是真的在清库存
The 2nd China PWA Developer Day
Unity 之 图集属性详解和代码示例 -- 拓展一键自动打包图集工具
tooltips使用教程(鼠标悬停时显示提示)
11 pinia use
01 Encounter typescript, build environment
BGP综合实验(建立对等体、路由反射器、联邦、路由宣告及聚合)
【7.29】Code Source - 【Arrangement】【Stone Game II】【Cow and Snacks】【Minimum Number of Spawns】【Sequence】
border控件的使用
.NET 20th Anniversary Interview - Zhang Shanyou: How .NET technology empowers and changes the world
随机推荐
01 Encounter typescript, build environment
JVM parameter analysis Xmx, Xms, Xmn, NewRatio, SurvivorRatio, PermSize, PrintGC "recommended collection"
全新宝马3系上市,安全、舒适一个不落
The use of button controls
Why is the field of hacking almost filled with boys?
Dialogue with Zhuang Biaowei: The first lesson of open source
苹果官网样式调整 结账时产品图片“巨大化”
The normal form of the database (first normal form, second normal form, third normal form, BCNF normal form) "recommended collection"
org.apache.jasperException(could not initialize class org)
[7.28] Code Source - [Fence Painting] [Appropriate Pairs (Data Enhanced Version)]
After Grafana is installed, the web opens and reports an error
The principle of hough transform detection of straight lines (opencv hough straight line detection)
【7.29】Code Source - 【Arrangement】【Stone Game II】【Cow and Snacks】【Minimum Number of Spawns】【Sequence】
基于Redis(SETNX)实现分布式锁,案例:解决高并发下的订单超卖,秒杀
更新数据表update
t-sne 数据可视化网络中的部分参数+
After the form is submitted, the page does not jump [easy to understand]
对话庄表伟:开源第一课
Vb how to connect mysql_vb how to connect to the database collection "advice"
使用 GraphiQL 可视化 GraphQL 架构