Ana içeriğe geç

Get Endpoint

Endpoint

POST /apiops/projects/{projectName}/apiProxies/{apiProxyName}/endpoints/details/

Authentication

Requires a Personal API Access Token.

Authorization: Bearer YOUR_TOKEN

Request

Headers

HeaderValueRequired
AuthorizationBearer {token}Yes
Content-Typeapplication/jsonYes

Path Parameters

ParameterTypeRequiredDescription
projectNamestringYesProject name
apiProxyNamestringYesAPI Proxy name

Request Body

Full JSON Body Example

{
"name": "/api/users",
"httpMethod": "GET"
}

Request Body Fields

FieldTypeRequiredDescription
namestringYesEndpoint path/name
httpMethodstringYesHTTP method for the endpoint. See EnumHttpRequestMethod

Query Parameters

None

Response

Success Response (200 OK)

{
"id": "endpoint-id",
"endpoint": "/api/users",
"description": "Get all users",
"active": true,
"httpMethod": "GET",
"backendResourceUrl": "/users",
"backendHttpMethod": "GET"
}

Response Fields

FieldTypeDescription
idstringEndpoint unique identifier
endpointstringEndpoint path/name
descriptionstringEndpoint description
activebooleanWhether endpoint is active/enabled
httpMethodstringHTTP method for the endpoint
backendResourceUrlstringBackend resource URL
backendHttpMethodstringHTTP method for backend call

EnumHttpRequestMethod

  • GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD, TRACE, ALL

Note: Policy lists are not included. Use List Endpoint Policies to retrieve policy details.

Error Response (400 Bad Request)

{
"error": "bad_request",
"error_description": "Endpoint identifier (name and httpMethod) must be provided in request body!"
}

or

{
"error": "bad_request",
"error_description": "Endpoint with name (/api/users) and HTTP method (GET) is not found!"
}

Error Response (401 Unauthorized)

{
"error": "unauthorized_client",
"error_description": "Invalid token"
}

Error Response (404 Not Found)

{
"error": "not_found",
"error_description": "ApiProxy (name: MyAPI) was not found!"
}

cURL Example

curl -X POST \
"https://demo.apinizer.com/apiops/projects/MyProject/apiProxies/MyAPI/endpoints/details/" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "/api/users",
"httpMethod": "GET"
}'

Full JSON Body Example

{
"name": "/api/users",
"httpMethod": "GET"
}

Permissions

User must have any permission in the project (read access).

Notes and Warnings

  • Endpoint Identifier: Endpoint is identified by name and httpMethod combination (not by ID)
  • Policy Details: Policy lists are not included. Use List Endpoint Policies to retrieve policies