Returns the service’s external
location.
GET /service/<service-id>
Argument | Description |
---|---|
<service-id> |
ID of the required service |
In case of success, a complete URL of the service is returned:
https://login-dev.anthillplatfrom.org
This URL should be used as a base. For example, if service provides api
called auth
, the request would be:
POST https://login-dev.anthillplatfrom.org/auth
Response | Description |
---|---|
200 OK |
Everything went OK, service location follows. |
404 Not Found |
No such Service found |
Returns a location for multiple services at a same time. Same as request above, but for multiple services.
GET /services/<services>
Argument | Description |
---|---|
<services> |
Comma-separated list of service ID’s to return location about |
In case of success, a JSON object with complete URLs of the services is returned:
{
"login": "https://login-dev.anthillplatfrom.org/v0.1",
"profile": "https://profile-dev.anthillplatfrom.org/v0.1"
}
These URLs should be used as a base, same as in request above.
Response | Description |
---|---|
200 OK |
Everything went OK, locations of services follows. |
404 Not Found |
One of the requested services cannot be found. |
Returns the service’s location for a give network.
Only available from the ``internal`` network.
GET /service/<service-id>/<network>
Argument | Description |
---|---|
<service-id> |
ID of the required service |
<network> |
A network to return location from. For example, internal . |
Please note that internal
locations are not accessable from the
outside.
Response | Description |
---|---|
200 OK |
Everything went OK, service location follows. |
404 Not Found |
No such Service found |
Returns a location for multiple services at a same time, for a given network. Same as request above, but for multiple services.
GET /services/<services>/<network>
Argument | Description |
---|---|
<services> |
Comma-separated list of service ID’s to return location about |
<network> |
A network to return locations from. For example, internal . |
In case of success, a JSON object with complete URLs of the services is
returned. Please note that internal
locations are not accessible
from the outside.