Accessing the API interactive documentation
PingFederate ships with interactive documentation for both developers and non-developers to explore the API endpoints, view documentation for the API, and experiment with API calls.
About this task
In general, you can make API calls from an interactive user interface, custom applications, or from command line tools such as cURL. The endpoint is only available at the administrative port, as defined by the pf.admin.https.port
property in <pf_install>/pingfederate/bin/run.properties
.
For enhanced API security, you must include |
To access the administrative API documentation, follow these steps:
Steps
-
Start PingFederate.
-
Start a web browser.
-
Browse to the following URL: https://<pf_host>:9999/pf-admin-api/api-docs/
<pf_host> is the network address of your PingFederate server. It can be an IP address, a host name, or a fully qualified domain name. It must be reachable from your computer.
9999
is the default value of thepf.admin.https.port
property in therun.properties
file.The administrative API is also documented in the OpenAPI Specification, previously known as the Swagger Specification. Click on the
/pf-admin-api/v1/swagger.json
URL on the Administrative API Documentation page to access the contents. -
To test an administrative API, follow these steps:
-
Select a section of the administrative API you would like to explore; for example, /dataStores.
-
Expand the method you want to use; for example, GET /dataStores.
-
Enter required parameters, if any. For more information, see Operation Models underneath the selected API endpoint.
-
Click Try it out.
You might be prompted to sign on using administrative credentials over HTTP Basic authentication. The role assigned to the respective administrative accounts affects the access to the requested API.
Result:
If the request completes successfully, the administrative API returns the Request URL, the Response Body, the Response Code, and the Response Headers.
-