Get APIs
/apiplatform/developers/v1/apis
Returns all APIs the requesting user is authorized to view.
All authenticated users can request this resource. Only 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
- limit
-
Type:
integer
(int32
)Requested limit for the results list. - offset
-
Type:
integer
(int32
)Requested offset in the results list. - orderBy
-
Type:
array
Collection Format:multi
Sort criteria for the results list.-
Type:
string
-
- q
-
Type:
string
{ApiRestService.getApiList.param.query} - registered
-
Type:
string
Filter the results to include only registered APIs. A value oftrue
returns only registered APIs; APIs of all registration states are returned otherwise or if this parameter is absent. - state
-
Type:
array
Collection Format:multi
Filter the results to include only APIs with the states passed in this parameter. Separate multiple states with commas. Valid values are:ALPHA
,BETA
,RELEASED
,DEPRECATED
, andRETIRED
.-
Type:
string
-
- text
-
Type:
string
Filter text. - updated
-
Type:
integer
(int32
)Filter by the number of days updates are to be shown from.0
means the results are not filtered.
Response
- application/json
object
- count
-
Type:
integer
(int32
)Item count in this response. - filters
-
Type:
array
filtersList of filters applicable for the current API list. This isnull
by default. - hasMore
-
Type:
boolean
Default Value:false
Indicates if there are more results after the current batch. - items
-
Type:
array
itemsRequired:true
Actual response items. - limit
-
Type:
integer
(int32
)Paging limit. - links
-
Type:
array
linksHATEOAS links. - offset
-
Type:
integer
(int32
)Paging offset. - states
-
Type:
array
statesOptional list of API states. This isnull
by default. - totalResults
-
Type:
integer
(int32
)Response item count (excluding the paging parameters).
array
null
by default.-
Type:
string
object
- allVersions
-
Type:
array
allVersionsList of the API's available versions. - createdAt
-
Type:
string
The date and time the API was created. - createdBy
-
Type:
string
The name of the user who created the API. - deployments
-
Type:
array
deploymentsList of the API's available deployments. - description
-
Type:
string
The API's description. - details
-
Type:
object
ApiDetailArtifactAPI detail artifact representation - icon
-
Type:
string
Artifact containing the API's icon, if changed. - id
-
Type:
integer
(int32
)Required:true
The API's ID. - iterationId
-
Type:
integer
(int32
)The API's iteration ID. - links
-
Type:
array
linksHATEOAS links for the API. - name
-
Type:
string
Required:true
The API's name. - plans
-
Type:
array
plansThe API's deployment plans. - state
-
Type:
string
Allowed Values:[ "ALPHA", "BETA", "RETIRED", "RELEASED", "DEPRECATED" ]
The API's state. Valid values:ALPHA
,BETA
,RELEASED
,DEPRECATED
, andRETIRED
. - vanityName
-
Type:
string
Required:true
The API's vanity name. - version
-
Type:
string
Required:true
The API's version. - visibility
-
Type:
string
Allowed Values:[ "PROTECTED", "INTERNAL", "PUBLIC" ]
{dto.Api.visibility}
array
-
Type:
object
ApiVersionAPI version resource representation.
array
-
Type:
object
DeploymentDeployment resource representation.
object
- description
-
Type:
string
The API's overview description. - documentation
-
Type:
object
ApiDetailsItemAPI detail representation for overview and documentation subtypes. - overview
-
Type:
object
ApiDetailsItemAPI detail representation for overview and documentation subtypes.
array
-
Type:
object
PlanForApiPlan for a given API resource representation.
object
- vanityName
-
Type:
string
Required:true
The API's vanity name. - version
-
Type:
string
Required:true
The API's version.
object
- description
-
Type:
string
The deployment's description. - endPoints
-
Type:
array
endPointsA list of endpoint URLs. - state
-
Type:
string
Required:true
Allowed Values:[ "DRAFT", "WAITING_DEPLOYMENT", "DEPLOYED", "ACTIVE", "INACTIVE" ]
The deployment's state:ACTIVE
orINACTIVE
.
object
- data
-
Type:
string
The documentation data as a string. - dataType
-
Type:
string
The documentation data type. - docType
-
Type:
string
The documentation type.
object
- href
-
Type:
string
Required:true
Link reference string. - method
-
Type:
string
HTTP method used with the link. - rel
-
Type:
string
Required:true
Link relation string, eithercanonical
or a specific string value. - templated
-
Type:
string
Allowed Values:[ "true", "false" ]
Indicates whether the link has templated parts.
object
- description
-
Type:
string
The plan's description. - id
-
Type:
integer
(int32
)Required:true
The plan's ID. - links
-
Type:
array
linksHATEOAS links. - name
-
Type:
string
Required:true
The plan's name. - registeredApps
-
Type:
array
registeredAppsList of applications registered to the API.
array
-
Type:
object
RegisteredAppRegistered application resource representation.
object
- id
-
Type:
integer
(int32
)Required:true
The application's ID. - name
-
Type:
string
Required:true
The application's name. - state
-
Type:
string
Required:true
Allowed Values:[ "REGISTERED", "REQUESTING", "SUSPENDED", "REJECTED" ]
The application's registration state.
Examples
The following example shows how to return all APIs published to the API Platform Cloud Service Developer Portal that the requesting client can view 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
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:41:25 GMT Content-type: application/json X-oracle-dms-ecid: 6^3rv0_eR00000000 X-oracle-dms-rid: 0:1 Via: 1.1 otd_opc Proxy-agent: Oracle-Traffic-Director/12.2.1.0.0 Transfer-encoding: chunked
Example of Response Body
The following example shows the contents of the response body in JSON format, including the state of each API (Released, Alpha, and Beta), which applications are registered to them, and HATEOAS links for related operations.
{ "count": 3, "filters": [ "REGISTERED" ], "hasMore": false, "items": [ { "type": "api", "id": 180, "links": [ { "href": "https://example.com/apiplatform/developers/v1/apis", "method": "GET", "rel": "canonical", "templated": "true" }, { "href": "https://example.com/apiplatform/developers/v1/apis/WeatherService", "method": "GET", "rel": "canonical", "templated": "true" } ], "name": "WeatherService", "plans": [ { "description": "default", "id": 168, "links": [], "name": "WeatherService", "registeredApps": [ { "id": 345, "name": "WeatherApp 1", "state": "REGISTERED" } ] } ], "state": "ALPHA", "vanityName": "WeatherService", "version": "1" }, { "type": "api", "description": "Credit Check", "id": 211, "links": [ { "href": "https://example.com/apiplatform/developers/v1/apis", "method": "GET", "rel": "canonical", "templated": "true" }, { "href": "https://example.com/apiplatform/developers/v1/apis/CreditCheck", "method": "GET", "rel": "canonical", "templated": "true" } ], "name": "CreditCheck", "plans": [ { "description": "default", "id": 181, "links": [], "name": "CreditCheck 1", "registeredApps": [] } ], "state": "ALPHA", "vanityName": "CreditCheck", "version": "1" }, { "type": "api", "id": 152, "links": [ { "href": "https://example.com/apiplatform/developers/v1/apis", "method": "GET", "rel": "canonical", "templated": "true" }, { "href": "https://example.com/apiplatform/developers/v1/apis/SportsScores", "method": "GET", "rel": "canonical", "templated": "true" } ], "name": "SportsScores", "plans": [ { "description": "default", "id": 148, "links": [], "name": "SportsScores 1", "registeredApps": [] } ], "state": "BETA", "vanityName": "SportsScores", "version": "1" } ], "limit": 0, "links": [ { "href": "https://example.com/apiplatform/developers/v1/apis", "method": "GET", "rel": "canonical", "templated": "true" } ], "offset": 0, "states": [ "RELEASED", "ALPHA", "BETA" ] }