当前位置:网站首页>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
边栏推荐
- npm安装时卡在sill idealTree buildDeps,npm安装速度慢,npm安装卡在一个地方不动
- jeecg主从数据库读写分离配置「建议收藏」
- Linux查看redis版本(查看mongodb版本)
- 深度学习机器学习理论及应用实战-必备知识点整理分享
- 更新数据表update
- Insert into data table to insert data
- Delete the disk in good condition (recovery partition)
- mysql black window ~ build database and build table
- Visualize GraphQL schemas with GraphiQL
- Emmet syntax
猜你喜欢
随机推荐
Why is the field of hacking almost filled with boys?
Kubernetes common commands
国内市场上的BI软件,到底有啥区别
vb中如何连接mysql_vb怎么连接数据库「建议收藏」
The new BMW 3 Series is on the market, with safety and comfort
Emmet syntax
Delete table data or clear table
After the form is submitted, the page does not jump [easy to understand]
Applicable scenario of multi-master replication (2) - client and collaborative editing that require offline operation
LeetCode_733_图像渲染
单细胞测序流程(单细胞rna测序)
[TypeScript] In-depth study of TypeScript type operations
Baidu cloud web speed playback (is there any website available)
双边滤波加速「建议收藏」
Browser's built-in color picker
【7.28】代码源 - 【Fence Painting】【合适数对(数据加强版)】
Matlab matrix basic operations (definition, operation)
【7.29】Code Source - 【Arrangement】【Stone Game II】【Cow and Snacks】【Minimum Number of Spawns】【Sequence】
How to switch remote server in gerrit
Unity中实现点选RenderTexture中的3D模型









