blob: ee90751a0d66fe0f48817c6daeae513230a67e87 [file] [log] [blame]
Saryu Shah990f41d2019-08-30 04:13:06 +00001.. This work is licensed under a Creative Commons Attribution 4.0 International License.
2.. http://creativecommons.org/licenses/by/4.0
Pamela Dragoshd5ff9882020-05-11 15:18:01 -04003
4.. DO NOT CHANGE THIS LABEL FOR RELEASE NOTES - EVEN THOUGH IT GIVES A WARNING
5.. _offeredapis:
Saryu Shah990f41d2019-08-30 04:13:06 +00006
7
Pamela Dragosh22ded7e2019-10-03 08:20:42 -04008Policy Offered APIs
9===================
Saryu Shah990f41d2019-08-30 04:13:06 +000010
11The Policy Framework supports the public APIs listed in the links below:
12
Pamela Dragoshb4a8ef22020-04-21 15:30:35 -040013.. toctree::
14 :maxdepth: 1
15
16 api/api
17 pap/pap
18 xacml/decision-api
19
Pamela Dragosh22ded7e2019-10-03 08:20:42 -040020Postman Environment for API Testing
21-----------------------------------
22
23The following environment file from postman can be used for testing API's. All you need to do is fill in the IP and Port information for the installation that you have created.
24
25:download:`link <PolicyAPI.postman_environment.json>`
26
27Postman Collection for API Testing
28----------------------------------
29
Ram Krishna Verma68966c02020-07-21 16:19:45 -040030Postman collection for `Policy Framework Lifecycle API <https://github.com/onap/policy-api/blob/master/postman/lifecycle-api-collection.json>`_
Pamela Dragosh22ded7e2019-10-03 08:20:42 -040031
Ram Krishna Verma68966c02020-07-21 16:19:45 -040032Postman collection for `Policy Framework Administration API <https://github.com/onap/policy-pap/blob/master/postman/pap-api-collection.json>`_
33
34Postman collection for `Policy Framework Decision API <https://github.com/onap/policy-xacml-pdp/blob/master/postman/decision-api-collection.json>`_
puthuparambil.adityaa6c09a22020-07-27 12:09:40 +010035
36API Swagger Generation
37----------------------
38
39The standard for API definition in the RESTful API world is the OpenAPI Specification (OAS). The OAS, which is based on
40the original "Swagger Specification," is being widely used in API developments.
41
42Execute the below curl command for swagger generation by filling in the authorization details, IP and Port information:
43
44.. code-block:: bash
45
46 “curl -k --user ‘{user_id}:{password}’ https://{ip}:{port}/swagger.json”
47
48