API Documentation
Harper provides automatically generated API documentation page via Swagger UI integration. This page allows developers to explore and test the various API endpoints available in your Harper instance/cluster.
Accessing the API Documentation
To access the API documentation, navigate to the following URL in your web browser:
- Sign in to your Harper Fabric Studio.
- Select your Organization and Cluster.
- Sign in to the Cluster and navigate to the
APIstab in the sub-menu.
API Execution
In order to execute API calls directly from the Swagger UI:
- Click an endpoint to expand it.
- Enter the required information in the provided fields under the "Parameters" tab.
- Scroll down and click the "Execute" button.
- The server response from the API call will be displayed below, including HTTP status code, and response body.
Authorize
To authorize API requests, you need to include a valid basic authentication header or bearer authentication token.
- Click on the "Authorize" button in the Swagger Documentation UI.
- Choose your preferred authentication method (Basic or Bearer) and enter your credentials or token.
- Click the "Authorize" button to apply the authentication key to all subsequent requests.
- Execute an API call to verify that the authorization was successful.