2016-07-14 20:27:38 +03:00
|
|
|
.. -*- rst -*-
|
|
|
|
|
|
|
|
=========
|
|
|
|
Endpoints
|
|
|
|
=========
|
|
|
|
|
|
|
|
|
|
|
|
List endpoint templates
|
|
|
|
=======================
|
|
|
|
|
|
|
|
.. rest_method:: GET /v2.0/endpoints
|
|
|
|
|
|
|
|
Normal response codes: 200
|
|
|
|
|
|
|
|
Response Parameters
|
|
|
|
-------------------
|
|
|
|
|
2016-09-14 11:59:13 +07:00
|
|
|
.. rest_parameters:: parameters.yaml
|
2016-07-14 20:27:38 +03:00
|
|
|
|
2016-09-14 11:59:13 +07:00
|
|
|
- endpoints: endpoints
|
2016-07-14 20:27:38 +03:00
|
|
|
|
|
|
|
Response Example
|
|
|
|
----------------
|
|
|
|
|
|
|
|
.. literalinclude:: samples/admin/endpoint-list-response.json
|
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
|
|
|
Create endpoint template
|
|
|
|
========================
|
|
|
|
|
|
|
|
.. rest_method:: POST /v2.0/endpoints
|
|
|
|
|
|
|
|
Normal response codes: 201
|
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
2016-09-14 11:59:13 +07:00
|
|
|
.. rest_parameters:: parameters.yaml
|
2016-07-14 20:27:38 +03:00
|
|
|
|
2016-09-14 11:59:13 +07:00
|
|
|
- endpoint: endpoint
|
|
|
|
- region: endpoint_region_request
|
|
|
|
- service_id: service_id_request
|
|
|
|
- publicurl: endpoint_publicurl_request
|
|
|
|
- adminurl: endpoint_adminurl_request
|
|
|
|
- internalurl: endpoint_internalurl_request
|
2016-07-14 20:27:38 +03:00
|
|
|
|
|
|
|
Request Example
|
|
|
|
---------------
|
|
|
|
|
|
|
|
.. literalinclude:: samples/admin/endpoint-create-request.json
|
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
Response Parameters
|
|
|
|
-------------------
|
|
|
|
|
2016-09-14 11:59:13 +07:00
|
|
|
.. rest_parameters:: parameters.yaml
|
2016-07-14 20:27:38 +03:00
|
|
|
|
2016-09-14 11:59:13 +07:00
|
|
|
- endpoint: endpoint
|
|
|
|
- id: endpoint_id
|
|
|
|
- internalurl: endpoint_internalurl_response
|
|
|
|
- publicurl: endpoint_publicurl_response
|
|
|
|
- region: endpoint_region_response
|
2016-07-14 20:27:38 +03:00
|
|
|
|
|
|
|
|
|
|
|
Delete endpoint template
|
|
|
|
========================
|
|
|
|
|
|
|
|
.. rest_method:: DELETE /v2.0/endpoints/{endpointId}
|
|
|
|
|
|
|
|
Normal response codes: 204
|
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
2016-09-14 11:59:13 +07:00
|
|
|
.. rest_parameters:: parameters.yaml
|
2016-07-14 20:27:38 +03:00
|
|
|
|
2016-09-14 11:59:13 +07:00
|
|
|
- endpointId: endpoint_id_path
|