GET /api/apis/versions/{ApiVersionID}/implementations/{ImplCode}/services/{ServiceID}/endpoints
Returns information about one or more endpoints (physical service or virtual service) for a specific API version, implementation, service.
Notes:
- If you need to update the physical service, use the response to this operation as the body content for PUT /api/apis/versions/{ApiVersionID}/implementations/{ImplCode}/services/{ServiceID}/endpoints, with a modified endpoint.
- If you need to update the virtual service, use GET /api/apis/versions/{APIVersionID}/implementations/{ImplCode}/deploymentsuggestions and then PUT /api/apis/versions/{APIVersionID}/implementations/{ImplCode}/deployments.
For more information, see Example: Modifying an API Endpoint.
Authorization Roles/Permissions: Must be logged in. Must be a user with Read authorization to view information about the API.
This topic includes the following sections:
HTTP Method
GET
URL
https://{hostname}/api/apis/versions/{ApiVersionID}/implementations/{ImplCode}/services/{ServiceID}/endpoints
Sample Request
The example below shows a request for the service endpoints for a specific API version implementation (virtual service).
Sample Request URL
https://{hostname}/api/apis/versions/e73b5ce8-f516-4641-9596-4fe51c977032.acmepaymentscorp/implementations/Live/services/uddi:682e995c-404b-11e9-a1ea-9aea37a739bc/endpoints
Sample request headers
Accept: application/json Cookie: {cookie} X-Csrf-Token_acmepaymentscorp: TokenID%3D8ed70a13-8469-11e8-b37a-b155e4eabeb8%2CexpirationTime%3D153...
Sample request body
Not applicable.
Request Headers
For general information on request header values, refer to HTTP Request Headers.
Header | Description |
---|---|
Accept | application/json, application/vnd.soa.v81+json |
Cookie | AtmoAuthToken_{fedmemberid}={cookie value, which usually starts with TokenID}—The platform cookie. This is the Akana API Platform authorization token, and must be sent with every API request that requires login. For more information and an example, see Session cookies. |
X-Csrf-Token_{fedmemberID} | The CSRF prevention header; may or may not be required, depending on platform settings. See CSRF Prevention on the Platform. By default, the CSRF header is not required for GET operations and is required for all others, with a few exceptions relating to user login. |
Request Parameters
Parameter | Parm Type | Data Type | Required | Description |
---|---|---|---|---|
APIVersionID | Path | string | Required | The unique ID for a specific API version. |
ImplCode | Path | string | Required | A code for a specific implementation. Valid values: Live or Sandbox. |
ServiceID | Path | string | Required | The unique ID for a specific service; either a proxied API service or a physical service. Sometimes also called the ServiceKey. If you're not sure how to find this value, run the GET /api/apis/versions/{APIVersionID}/implementations/{ImplCode} operation. For an explanation of where the physical and virtual service keys occur in the response, see Get the Service ID for the physical service. |
Response
If successful, this operation returns HTTP status code 200, with information about the specified endpoint.
Sample Response
The sample response below shows successful completion of this operation. There is only one endpoint for the service.
Sample response headers: application/json
Status Code: 200 OK Content-Type: application/json Date: Tue, 07 Sep 2021 22:21:23 GMT
Sample response body: application/json
{ "Endpoint":[ { "Uri":"https://soa.smext.faa.gov/asws", "ConnectionProperties":[ ], "BindingQName":"{FAA_Airport_Status_1.0}FAA_Airport_Status_Binding_0", "BindingType":"binding.http", "EndpointKey":"uddi:686e1376-404b-11e9-a1ea-9aea37a739bc" } ] }
Response Headers
For general information on response header values, refer to HTTP Response Headers.
Header | Description |
---|---|
Content-Type | application/json, application/vnd.soa.v81+json |
Response Body
Name | Type | Description |
---|---|---|
Endpoints | Endpoints | Includes information about the set of Endpoint objects containing the URL hosting the API, and the category of each. The TargetAPI can have endpoints for Live or Sandbox implementations and can also have more than one of each. |
Error Codes/Messages
If the call is unsuccessful an error code/message is returned. One or more examples of possible errors for this operation are shown below.
Item | Value |
---|---|
400 | Bad request: Returned if the client sends a malformed request; for example, invalid parameters or body content.For example, you might get this response if you left one of the placeholder values in your URL, instead of using a valid value. |
401 | Unauthorized. For example, you would get this response if you didn't include the custom X-Csrf-Token_{fedmemberID} header in the request, when it was required by the platform settings; or if you included an invalid or expired value for this header. You would also get this response for any operation that requires login (almost all) if the login cookie was missing. |
404 | The resource could not be found. For example, you might get this if you include an invalid APIVersionID. |
500 | An error occurred processing the call. |
More information about Akana API Platform API error messages.