List service classes in an ecosystem.

Details

List service classes in an ecosystem.

Service classes that are available in the Droplit system by default have a type value of “Curated.” All other service classes have a type value of “Custom.”

An account token, server token, or user token may be used to run this endpoint.

Parameters

query

  • ecosystemId (required): The ID of the ecosystem.

Responses

200

{
    "items": [
        {
            "name": "SERVICE-CLASS-NAME",
            "service": {
                "name": "SERVICE-NAME"
            },
            "type": "SERVICE-TYPE",
            "createdAt": "YYYY-MM-DD HH:MM:SS ENCODED",
            "ecosystemId": "ECOSYSTEM-ID"
        }
    ]
}

400

  • Ecosystem Invalid: The standard error structure defines this error as invalid parameters, with an invalid ID linked to the parameter that designates the ecosystem ID. In this context, it means that the ID given for an ecosystem was not valid.
  • Ecosystem Missing: The standard error structure defines this error as both an invalid parameter name and a missing parameter. In this context, it means that the parameter which is used to specify an ecosystem ID is not present.
  • Query Field Not Allowed: The standard error structure defines this error as invalid parameters, with additional parameters in the query string. In this context, it means that one or more query string fields are incorrect. They do not match the name(s) of the query string field(s) that are allowed for this endpoint.

404

  • Ecosystem Not Found: This error means that an ecosystem with the given ID was not found. This is distinct from an invalid ecosystem ID being specified; this means that the ecosystem ID once existed, but no longer does.

Examples

HTTP

GET https://ioe.droplit.io/api/serviceclasses HTTP/1.1
authorization: TOKEN

Droplit Console

droplit serviceclass list --ecosystemId ECOSYSTEM-ID

Droplit SDK

droplit.serviceClasses.list("ECOSYSTEM-ID");
Language
Credentials
Header
Click Try It! to start a request and see the response here!