Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.51 KB

api.md

File metadata and controls

42 lines (28 loc) · 1.51 KB

The Ark API Documentation

Documentation of all the API functions for The Ark. You can find implementations of these in api.py. You may click on each of the names to see examples and full spec.

Format

All data to and from the server will be of type application/json. Responses from the server will be one of three status codes:

200: The request went through, however, if error is specified in the JSON, then it will contain the error message.

{
    "error": "Halo name 'ServerName' is already taken"
}

400: Missing or invalid parameters or invalid type

403: Authentication Error. See authentication for more details

API Calls

List of all the API calls

Register a new standard Halo with The Ark. See Halo registration for more information on the types of Halos.

Delete a Halo and remove all forwards.

Get assigned addreses from The Ark for the given Halo.

Return the settings that are registered for the Halo.

NOT IMPLEMENTED, Probably will be deprecated

If the Halo is a redirect Halo, return the NGINX Halo block that The Ark uses (or would use) to redirect the traffic.

NOT IMPLEMENTED, Probably will be deprecated