REST API
The Aquarium API is used by Aquarium clients to interact with the server.
This API documentation is written with Bruno.
You can clone or download our repository and load the collection located in src/api/rest
in your Bruno GUI or CLI.
Overview
This collection use the system of environment variables available in Bruno. We provide an environment called default
that you can customize or copy to add you own data.
- An account on Aquarium is required to signin and get a token for authenticate your requests.
- An automatic script is available when you use the /signin endpoint.
- The response of every request is sent as JSON.
- The request method (verb) determines the nature of the action you intend to perform. A request made using the
GET
method implies that you want to fetch something from Aquarium, andPATCH
implies that you want to update something on Aquarium. - The API will respond with an appropriate HTTP status code and an error message in format of a JSON object.
- The API version number must be specified in the url.
your-aquarium.com/v1/...
- The body of a request can be send as form-data or JSON data, but the Content-Type header must match the format of the data.
Authentication
- Use the route
signin
to get a token or generate apersonal access token
. - Requests on endpoints that required authentication must contain a
Authorization
header containing the token.
If a token is missing, malformed, or invalid, you will receive a 401 Unauthorised
response code
Support
Please send an email to support@fatfi.sh if you have any questions.
Have fun !