PingAccess ships with interactive documentation
for both developers and non-developers to explore the PingAccess
PingAccess APIs are REST APIs that provide complete administrative capabilities of the product. They can be called from custom applications or from command line tools, such as cURL.
These endpoints are only available on the admin.port
defined in the
/pa-admin-api/v3/api-docs/<PA_HOME>/conf/run.properties
file. For example,
https://<PA_HOME>:<PORT>/pa-admin-api/v3/api-docs/.
If you selected the Use context root as reserved resource base
path check box in your PingAccess application, this feature creates an instance of any reserved PingAccess resources under the application’s context
root. As such, the context root of the application needs to prepend the reserved
context application root (/pa
by default) in any file paths that
reference it. If the context root of your application is myApp
, the
file path would start with /myApp/pa
.
For enhanced API security, you must include X-XSRF-Header:
PingAccess
in all requests and use the
application/json
content type for PUT
and
POST
requests.
Admin API documentation Swagger-UI specifications
The Swagger-UI component that displays the PingAccess admin API documentation uses OpenAPI specification (OAS) 2.0.
The specification that the PingAccess admin API docs used previously, Swagger 1.2, has been deprecated. The Swagger 1.2 specification is still available at https://<PA_HOME>:<PORT>/pa-admin-api/v3/api-docs/pa/api-docs.json but might be removed from future versions of PingAccess.
You can find the PingAccess admin API’s OAS 2.0 specifications at either of the following:
- https://<PA_HOME>:<PORT>/pa-admin-api/v3/api-docs/pa/api-docs-v2.json
- https://<PA_HOME>:<PORT>/pa-admin-api/v3/api-docs/pa/api-docs-v2.yaml
Access to these specifications simplifies the process of integrating the PingAccess admin API with modern API clients, such as Postman.