Skip to main content

URL structure

Supported methods and overview

  • GET - retrieves a list of callable API endpoints on the Cocoon Data Platform’s Access Service that are available to integrators.
This method takes no parameters.

Detailed description

This API endpoint retrieves a list of every callable API endpoint on the Cocoon Data Platform’s Access Service that are available to integrators. Regardless of the Cocoon Data user’s role associated with the access token submitted with this request, all callable API endpoints are retrieved. However, each of these API endpoints has their own Supported roles.

Supported roles

This API endpoint supports requests utilising Cocoon Data user accounts with the following roles (as described in the SafeShare Administrator’s and Organisation Administrator’s Guides): The Cocoon Data Platform’s resources available to Cocoon Data users meeting the criteria above is determined by the access token submitted in the header of requests to this endpoint.

Required headers

The appropriate access token as the Bearer token:
  • Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJleHAiOjE0NjcwMTY2NjYsInVzZXJfbmFtZSI6ImFsZXgub...

Returns

If the request succeeded, then an HTTP response status 200 OK is returned. For successful requests only, a JSON-formatted response containing the following members is also returned:
  • contentServiceURL - The base URL of the Cocoon Data Platform’s Content Service.
  • webappServiceURL - The base URL of the SafeShare web-based interfaces - i.e. for SafeShare for Web, SafeShare Administration and Organisation Administration.
  • services - An array containing information about each callable API endpoint on the Cocoon Data Platform’s Access Service. Each element of this array contains information about one of these endpoints (represented as an object containing the following members):
    • name - The internal name given to the API endpoint.
    • link - The format of the API endpoint’s URL, excluding the base URL component.
    • httpMethod - The method supported by the API endpoint URL (above).
    Example (response):