Get details for an API's published iteration

get

/developers/services/v1/apis/{vanityName}

Returns details about the iteration of the {vanityName} API published to the Developer Portal.

All authenticated users can request this resource. Only details for APIs that are published to the Developer Portal and the requesting user is issued the Manage API, View Public Details, Register, or Request Register API grant for are returned.

Request

Path Parameters
  • An API's unique vanity name. This is the URI path of the details page for the API on the Developer Portal (like https://example.com/developers/apis/weatherService.
Back to Top

Response

Supported Media Types

200 Response

JSON structure with details of the API.
Body ()
API resource representation.
Root Schema : PortalApi
Type: object
API resource representation.
Show Source
Nested Schema : allVersions
Type: array
List of the API's available versions.
Show Source
Nested Schema : ApiDetailArtifact
Type: object
API detail artifact representation
Show Source
Nested Schema : plans
Type: array
The API's deployment plans.
Show Source
Nested Schema : ApiVersion
Type: object
API version resource representation.
Show Source
Nested Schema : ApiDetailsItem
Type: object
API detail representation for overview and documentation subtypes.
Show Source
Nested Schema : PlanForApi
Type: object
Plan for a given API resource representation.
Show Source
Nested Schema : Constraints
Type: object
Plan subscription constraints.
Show Source
Nested Schema : PublicationSettings
Type: object
Publication settings for the given plan.
Show Source
Nested Schema : subscriptions
Type: array
List of applications registered to the API.
Show Source
Nested Schema : Rate
Type: object
Rate for plan subscription constraints.
Show Source
Nested Schema : invocations
Type: array
Invocation constraint parameters list.
Show Source
Nested Schema : Invocation
Type: object
Plan constraint - invocation parameters.
Show Source
Nested Schema : ConstraintSettings
Type: object
Plan publication setting's constraint display options.
Show Source
Nested Schema : DescriptionSettings
Type: object
Plan publication setting's description display options.
Show Source
Nested Schema : IconSettings
Type: object
Plan publication setting's plan icon options.
Show Source
Nested Schema : RateSettings
Type: object
Plan publication setting's invocation rate display options flag.
Show Source
Nested Schema : InvocationSettings
Type: object
Plan invocation's display options.
Show Source
Nested Schema : Subscription
Match All
Show Source
Nested Schema : SubscriptionId
Type: object
Show Source
Nested Schema : Subscription-allOf[1]
Type: object
Show Source
Nested Schema : Subscription-allOf[2]
Type: object
Show Source
Nested Schema : SubscriptionState
Type: object
Show Source
Nested Schema : SubscriptionMetadata
Type: object
Show Source
Nested Schema : Application
Type: object
Nested Schema : Plan
Type: object

400 Response

Bad request: indicates a problem with the input parameters.

401 Response

Authentication required.

404 Response

API not found.

500 Response

Server error.
Back to Top

Examples

The following example shows how to retrieve details about the iteration of the {vanityName} API published to the Developer Portal by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL.

curl -i -X GET 
-u apicsadmin:password
https://example.com:443/developers/services/v1/apis/{vanityName}

{vanityName} is an API's unique vanity name. This is the URI path of the details page for the API on the Developer Portal (like https://example.com/developers/apis/weatherService, 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
Date: Wed, 20 Dec 2017 05:19:46 GMT
Content-type: application/json
X-oracle-dms-ecid: 6^3rv0_eR00000000
X-oracle-dms-rid: 0:1

Example of Response Body

The following example shows the contents of the response body in JSON format, including the details of the API.

{
    "vanityName": "creditcheck",
    "visibility": "PROTECTED",
    "version": "18.1.1",
    "createdAt": "2017-12-19T20:32:07-0800",
    "createdBy": "apicsadmin",
    "plans": [
        {
            "registeredApps": [
                {
                    "name": "Portal",
                    "id": 101,
                    "state": "REGISTERED"
                },
                {
                    "name": "Mobile",
                    "id": 100,
                    "state": "REGISTERED"
                }
            ],
            "name": "Mobile Device 18.1.1",
            "description": "default",
            "links": [
                {
                    "method": "POST",
                    "templated": "true",
                    "rel": "register",
                    "href": "http://example.com:443/developers/services/v1/plans/102/subscriptions"
                }
            ],
            "id": 102
        }
    ],
    "allVersions": [
        {
            "vanityName": "creditcheck",
            "version": "18.1.1"
        }
    ],
    "name": "Mobile Device",
    "details": {
        "overview": {
            "data": "Mobile",
            "docType": "html",
            "dataType": "text"
        }
    },
    "links": [
        {
            "method": "GET",
            "templated": "true",
            "rel": "canonical",
            "href": "http://example.com:443/developers/services/v1/apis/creditcheck"
        }
    ],
    "id": 102,
    "state": "ALPHA",
    "iterationId": 3
}
Back to Top