-
Notifications
You must be signed in to change notification settings - Fork 0
API Tips
Aelithron edited this page Dec 11, 2024
·
1 revision
Here's some basic advice for using the AxionSpire API!
- Make sure to check before you upload. Be careful in regards to sending malformed or empty data. The API may fully reject a request if it has a missing parameter.
- Always check for a status code of
4XXor5XX, as well as theerrorfield in the JSON response. Any failed request will contain anerrorparameter, and successful requests never will. Errors also come along with amessageparameter, which is human-readable. - Send a
Content-Typeheader. The API currently uses exclusively JSON, so applying aContent-Type: application/jsonheader will make things work much better (mainly with Express's JSON middleware parser, which is heavily used in this API).