Get API details

get

/apiplatform/management/v1/apis/{apiId}

Returns the details of the {apiID} API. The response also contains HATEOAS links to related operations.

Users requesting this resource must be assigned the Plan Manager, Gateway Manager or API Manager role and must be issued the Manage API, View All Details or View Public Details grants for the specified API.

Request

Supported Media Types
Path Parameters
Query Parameters
  • Collection Format: csv
    Pass optional fields, separated by commas, in this parameter to return them in the response. See the operation's description for a list of expand values.
  • Collection Format: csv
    Pass optional fields, separated by commas, in this parameter to return them in the response. See the operation's description for a list of field values.
Back to Top

Response

Supported Media Types

200 Response

The API's definition.
Body ()
Root Schema : GetApiResponse
Match All
Show Source
Nested Schema : ResourceLinksProperties
Type: object
Show Source
Nested Schema : Api
Type: object

403 Response

Forbidden.
Body ()
Root Schema : Error
Type: object
Show Source
Nested Schema : errorDetails
Type: array
additional errors
Show Source

500 Response

Unexpected error.
Body ()
Root Schema : Error
Type: object
Show Source
Nested Schema : errorDetails
Type: array
additional errors
Show Source
Back to Top

Examples

The following example shows how to retrieve details about a specific API by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL

curl -i -X GET 
-H "Authorization: Bearer access_token"
https://example.com/apiplatform/management/v1/apis/{apiId}

{apiId} is the unique ID for an API. To retrieve available API Ids, see Get APIs.

Example of Response Headers

The following shows an example of the response headers.

HTTP/1.1 200 OK
Server: Oracle-Traffic-Director/12.2.1.0.0
Date: Mon, 02 Jan 2017 18:18:31 GMT
Content-length: 2483
Content-type: application/json
X-oracle-dms-ecid: 4cWFx1SrR00000000
X-oracle-dms-rid: 0:1
Via: 1.1 otd_opc
Proxy-agent: Oracle-Traffic-Director/12.2.1.0.0

Example of Response Body

The following example shows the contents of the response body in JSON format, including the API???s details and HATEOAS links to related operations.

{
    "vanityName": "rest",
    "updatedBy": "apcsadmin",
    "implementation": {
        "executions": {
            "request": [
                "1",
                "2"
            ],
            "response": [
                "3",
                "4"
            ]
        },
        "policies": [
            {
                "schemaVersion": "1",
                "draft": false,
                "id": "1",
                "type": "o:ApiRequest",
                "version": "1.0",
                "config": {
                    "protocols": [
                        "HTTP"
                    ],
                    "url": "proc_test"
                }
            },
            {
                "schemaVersion": "3",
                "draft": false,
                "id": "2",
                "type": "o:ServiceRequest",
                "version": "1.0",
                "config": {
                    "serviceAccount": "101",
                    "serviceId": "100"
                }
            },
            {
                "schemaVersion": "1",
                "id": "3",
                "type": "o:ServiceResponse",
                "version": "1.0",
                "config": {}
            },
            {
                "schemaVersion": "1",
                "id": "4",
                "type": "o:ApiResponse",
                "version": "1.0",
                "config": {}
            }
        ],
        "specification": {
            "apiary": {
                "docType": "swagger",
                "apiaryData": {
                    "apiProjectUuid": "GUID",
                    "apiProjectUriTemplate": "https://example.io/api-projects/key",
                    "descriptionDocumentUrlTemplate": "https://example.io/api-projects/key"
                },
                "name": "Energy",
                "accessToken": "token",
                "refreshToken": "token"
            }
        }
    },
    "version": "1",
    "createdAt": "2018-02-13T10:38:13-0800",
    "createdBy": "apcsadmin",
    "publication": {
        "visibility": "PROTECTED",
        "state": "UNPUBLISHED"
    },
    "name": "proc_test",
    "details": {
        "overview": {
            "data": "Developer Portal",
            "docType": "html",
            "dataType": "text"
        },
        "documentation": {
            "docType": "apiary",
            "dataType": "specification"
        }
    },
    "links": [
        {
            "templated": "true",
            "method": "GET",
            "rel": "self",
            "href": "http://example.com:443/apiplatform/management/v1/apis/109"
        },
        {
            "templated": "true",
            "method": "GET",
            "rel": "canonical",
            "href": "http://example.com:443/apiplatform/management/v1/apis/109"
        },
        {
            "templated": "true",
            "method": "GET",
            "rel": "iteration",
            "href": "http://example.com:443/apiplatform/management/v1/apis/109/iterations/5"
        },
        {
            "templated": "true",
            "method": "GET",
            "rel": "history",
            "href": "http://example.com:443/apiplatform/management/v1/apis/109/history"
        },
        {
            "templated": "true",
            "method": "PUT",
            "rel": "edit",
            "href": "http://example.com:443/apiplatform/management/v1/apis/109"
        },
        {
            "templated": "true",
            "method": "PUT",
            "rel": "rename",
            "href": "http://example.com:443/apiplatform/management/v1/apis/109/identity"
        },
        {
            "templated": "true",
            "method": "POST",
            "rel": "validate",
            "href": "http://example.com:443/apiplatform/management/v1/apis/109/validation"
        },
        {
            "templated": "true",
            "method": "PUT",
            "rel": "lifecycle",
            "href": "http://example.com:443/apiplatform/management/v1/apis/109/state"
        },
        {
            "templated": "true",
            "method": "PUT",
            "rel": "publish",
            "href": "http://example.com:443/apiplatform/management/v1/apis/109/publication"
        },
        {
            "templated": "true",
            "method": "PUT",
            "rel": "unpublish",
            "href": "http://example.com:443/apiplatform/management/v1/apis/109/publication"
        },
        {
            "templated": "true",
            "method": "GET",
            "rel": "references",
            "href": "http://example.com:443/apiplatform/management/v1/apis/109/references"
        },
        {
            "templated": "true",
            "method": "GET",
            "rel": "references.applications",
            "href": "http://example.com:443/apiplatform/management/v1/apis/109/references/applications"
        },
        {
            "templated": "true",
            "method": "GET",
            "rel": "references.gateways",
            "href": "http://example.com:443/apiplatform/management/v1/apis/109/references/gateways"
        },
        {
            "templated": "true",
            "method": "GET",
            "rel": "references.services",
            "href": "http://example.com:443/apiplatform/management/v1/apis/109/references/services"
        },
        {
            "templated": "true",
            "method": "GET",
            "rel": "references.serviceaccounts",
            "href": "http://example.com:443/apiplatform/management/v1/apis/109/references/serviceaccounts"
        },
        {
            "templated": "true",
            "method": "GET",
            "rel": "entitlements",
            "href": "http://example.com:443/apiplatform/management/v1/apis/109/entitlements"
        },
        {
            "templated": "true",
            "method": "GET",
            "rel": "deployments",
            "href": "http://example.com:443/apiplatform/management/v1/apis/109/deployments"
        },
        {
            "templated": "true",
            "method": "GET",
            "rel": "grants",
            "href": "http://example.com:443/apiplatform/management/v1/apis/109/grants"
        }
    ],
    "state": "ALPHA",
    "id": "109",
    "iterationId": "5",
    "updatedAt": "2018-02-13T22:54:23-0800",
    "artifacts": []
}
Back to Top