如何为 api RESTful (application express) 发出 GET 请求?
How to make a GET request for an api RESTful (application express)?
这是我第一次在 apex(应用程序快递)上创建 api restfull。我正在使用来自 oracle (https://livesql.oracle.com/apex/livesql/file/content_O5AEB2HE08PYEPTGCFLZU9YCV.html)
的 emp table
我按照本指南创建了一个 api restful (http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/apex/r50/Restful%20Services/restful_services.html#overview)
注意:指南中不再显示 "test" 按钮
这是我输入的信息:
名称:服务一
URI 前缀:so
URI 模板:雇员
方法:GET
格式:JSON
查询:select * 来自 emp
我正在使用 chrome 的邮递员来测试我的 api。
假设 http://example.com/apex 是我的顶点应用程序
postman 中的 url 应该是什么才能向我刚刚创建的 api rest 发出 GET 请求?
这是从 apex 到 restful 服务的有效 URL:
https://apex.oracle.com/pls/apex/stackquestions/hr/empinfo/
https://apex.oracle.com/pls/apex/<WORKSPACENAME>/<URI PREFIX>/<URI TEMPLATE>/
使用这个工作区检查一些东西:
工作区:堆栈问题
用户:测试
密码:测试
登录:https://apex.oracle.com/pls/apex/f?p=4550
转到:SQL Workshop >> RESTFul Services >> oracle.examplehr >> empinfo/
点击图片:
这是我第一次在 apex(应用程序快递)上创建 api restfull。我正在使用来自 oracle (https://livesql.oracle.com/apex/livesql/file/content_O5AEB2HE08PYEPTGCFLZU9YCV.html)
的 emp table我按照本指南创建了一个 api restful (http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/apex/r50/Restful%20Services/restful_services.html#overview)
注意:指南中不再显示 "test" 按钮
这是我输入的信息:
名称:服务一
URI 前缀:so
URI 模板:雇员
方法:GET
格式:JSON
查询:select * 来自 emp
我正在使用 chrome 的邮递员来测试我的 api。
假设 http://example.com/apex 是我的顶点应用程序
postman 中的 url 应该是什么才能向我刚刚创建的 api rest 发出 GET 请求?
这是从 apex 到 restful 服务的有效 URL:
https://apex.oracle.com/pls/apex/stackquestions/hr/empinfo/
https://apex.oracle.com/pls/apex/<WORKSPACENAME>/<URI PREFIX>/<URI TEMPLATE>/
使用这个工作区检查一些东西:
工作区:堆栈问题
用户:测试
密码:测试
登录:https://apex.oracle.com/pls/apex/f?p=4550
转到:SQL Workshop >> RESTFul Services >> oracle.examplehr >> empinfo/
点击图片: