API

TestPoint DCP implements the AusDigital Digital Capability Locator specifications. The API is directly available to developers, and also backs the SwaggerHub specifications. Support is available through the GitHub site.

The OASIS-compliant DCP is available at https://dcp.testpoint.io/

As with other TestPoint APIs, authenticated access is available using synthetic user accounts from the TestPoint IDP. If you don’t have any user there just follow the instructions on idp.testpoint.io.

With synthetic user credentials on idp.testpoint.io, you are able to use the TestPoint IDP to create a JWT for the TestPoint DCP:

  1. Login again to the IDP, this time using the synthetic user credentials you made above.
  2. Select the dcp.testpoint.io client and click Issue new token for this client
  3. Make note of the JWT token (copy/paste), which you can use to access the TestPoint DCP (as the synthetic user)

You can now use this JWT to gain authenticated access the TestPoint DCP. For example:

export IDP_AUTH="JWT {YOUR-TOKEN-HERE}"
curl -v -X GET --header 'Content-Type: application/json' \
    --header 'Accept: application/json; indent=4' \
    --header "Authorization: ${IDP_AUTH}" \
    'https://dcp.testpoint.io/api/v0/demo_auth/'

Or use more complex queries (for example, Update service metadata). Check readme for more details.

Data Fixtures

This implementation currently relies on the Testpoint IDP for business authentication and access control. Using this service, developers can ‘claim’ ABNs for exclusive use on the Testpoint DCP site, and manage their own credentials. A developer’s collection of ABN credentials can be used for testing purposes at the Testpoint DCP API.

While these participant identifiers looks exactly like some real Australian businesses - it’s complete coincidence and they have no relation to real-world business. Any testpoint.io service MUST NOT be used for real-world applications.