Get details for an API's published iteration
/apiplatform/developers/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
- vanityName
-
Type:
stringRequired:trueAn API's unique vanity name. This is the URI path of the details page for the API on the Developer Portal (likehttps://example.com/developers/apis/weatherService.
Response
- application/json
object- allVersions
-
Type:
arrayallVersionsList of the API's available versions. - createdAt
-
Type:
stringThe date and time the API was created. - createdBy
-
Type:
stringThe name of the user who created the API. - deployments
-
Type:
arraydeploymentsList of the API's available deployments. - description
-
Type:
stringThe API's description. - details
-
Type:
objectApiDetailArtifactAPI detail artifact representation - icon
-
Type:
stringArtifact containing the API's icon, if changed. - id
-
Type:
integer(int32)Required:trueThe API's ID. - iterationId
-
Type:
integer(int32)The API's iteration ID. - links
-
Type:
arraylinksHATEOAS links for the API. - name
-
Type:
stringRequired:trueThe API's name. - plans
-
Type:
arrayplansThe API's deployment plans. - state
-
Type:
stringAllowed Values:[ "ALPHA", "BETA", "RETIRED", "RELEASED", "DEPRECATED" ]The API's state. Valid values:ALPHA,BETA,RELEASED,DEPRECATED, andRETIRED. - vanityName
-
Type:
stringRequired:trueThe API's vanity name. - version
-
Type:
stringRequired:trueThe API's version. - visibility
-
Type:
stringAllowed Values:[ "PROTECTED", "INTERNAL", "PUBLIC" ]{dto.Api.visibility}
array-
Type:
objectApiVersionAPI version resource representation.
array-
Type:
objectDeploymentDeployment resource representation.
object- description
-
Type:
stringThe API's overview description. - documentation
-
Type:
objectApiDetailsItemAPI detail representation for overview and documentation subtypes. - overview
-
Type:
objectApiDetailsItemAPI detail representation for overview and documentation subtypes.
array-
Type:
objectPlanForApiPlan for a given API resource representation.
object- vanityName
-
Type:
stringRequired:trueThe API's vanity name. - version
-
Type:
stringRequired:trueThe API's version.
object- description
-
Type:
stringThe deployment's description. - endPoints
-
Type:
arrayendPointsA list of endpoint URLs. - state
-
Type:
stringRequired:trueAllowed Values:[ "DRAFT", "WAITING_DEPLOYMENT", "DEPLOYED", "ACTIVE", "INACTIVE" ]The deployment's state:ACTIVEorINACTIVE.
object- data
-
Type:
stringThe documentation data as a string. - dataType
-
Type:
stringThe documentation data type. - docType
-
Type:
stringThe documentation type.
object- href
-
Type:
stringRequired:trueLink reference string. - method
-
Type:
stringHTTP method used with the link. - rel
-
Type:
stringRequired:trueLink relation string, eithercanonicalor a specific string value. - templated
-
Type:
stringAllowed Values:[ "true", "false" ]Indicates whether the link has templated parts.
object- description
-
Type:
stringThe plan's description. - id
-
Type:
integer(int32)Required:trueThe plan's ID. - links
-
Type:
arraylinksHATEOAS links. - name
-
Type:
stringRequired:trueThe plan's name. - registeredApps
-
Type:
arrayregisteredAppsList of applications registered to the API.
array-
Type:
objectRegisteredAppRegistered application resource representation.
object- id
-
Type:
integer(int32)Required:trueThe application's ID. - name
-
Type:
stringRequired:trueThe application's name. - state
-
Type:
stringRequired:trueAllowed Values:[ "REGISTERED", "REQUESTING", "SUSPENDED", "REJECTED" ]The application's registration state.
Examples
The following example shows how to retrieve details about a specific API published to the Oracle API Platform Cloud Service 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/apiplatform/developers/v1/apis/WeatherService1
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: Sun, 01 Jan 2017 15:46:02 GMT Content-length: 859 Content-type: application/json X-oracle-dms-ecid: R^4Oa1FpR00000000 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 details about the API and HATEOAS links to related operations.
{
"allVersions": [
{
"vanityName": "WeatherService1",
"version": "1"
}
],
"createdAt": "2016-12-09T03:50:21+0000",
"createdBy": "weblogic",
"deployments": [
{
"description": "test",
"endPoints": [
"HTTP://example.com/WeatherService1"
],
"state": "APPROVED"
}
],
"details": {},
"id": 180,
"iterationId": 1,
"links": [
{
"href": "https://example.com/apiplatform/developers/v1/apis/WeatherService1",
"method": "GET",
"rel": "canonical",
"templated": "true"
}
],
"name": "WeatherService",
"plans": [
{
"description": "default",
"id": 168,
"links": [
{
"href": "https://example.com/apiplatform/management/v1/plans/168/registrations",
"method": "POST",
"rel": "register",
"templated": "true"
}
],
"name": "WeatherService 1",
"registeredApps": [
{
"id": 345,
"name": "WeatherMobileApp",
"state": "REGISTERED"
}
]
}
],
"state": "ALPHA",
"vanityName": "WeatherService1",
"version": "1"
}