--- sidebar_position: 1 --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; # Basic The basic routes of the API ## GET /v1/help Get a help message. :::tip[**Example** Response] ```json Please refer to the wiki at https://wiki.jonasjones.dev/Api/ ``` ```json { "status": 500, "statusText": "Internal Server Error" } ``` | Parameter | Type | Description | | ---------- | ------ | ---------------------------- | | status | Number | The status code of the error | | statusText | String | The status text of the error | ```json API is down { "status": 503, "statusText": "Service Unavailable" } ``` | Parameter | Type | Description | | ---------- | ------ | ---------------------------- | | status | Number | The status code of the error | | statusText | String | The status text of the error | ::: ## GET /v1/ping Get a ping back from the API :::tip[**Example** Response] ```json pong ``` ```json { "status": 500, "statusText": "Internal Server Error" } ``` | Parameter | Type | Description | | ---------- | ------ | ---------------------------- | | status | Number | The status code of the error | | statusText | String | The status text of the error | ```json API is down { "status": 503, "statusText": "Service Unavailable" } ``` | Parameter | Type | Description | | ---------- | ------ | ---------------------------- | | status | Number | The status code of the error | | statusText | String | The status text of the error | ::: ## GET /v1/version Get the version of the Rust api back-end :::tip[**Example** Response] ```json ["0.0.1+alpha-build01"] ``` ```json { "status": 500, "statusText": "Internal Server Error" } ``` | Parameter | Type | Description | | ---------- | ------ | ---------------------------- | | status | Number | The status code of the error | | statusText | String | The status text of the error | ```json API is down { "status": 503, "statusText": "Service Unavailable" } ``` | Parameter | Type | Description | | ---------- | ------ | ---------------------------- | | status | Number | The status code of the error | | statusText | String | The status text of the error | ::: ## GET /v1/debug/headers Get the incoming headers of the request :::tip[**Example** Response] ```json { "Origin": "...", "Referer": "...", "User-Agent": "...", "...": "..." } ``` ```json { "status": 500, "statusText": "Internal Server Error" } ``` | Parameter | Type | Description | | ---------- | ------ | ---------------------------- | | status | Number | The status code of the error | | statusText | String | The status text of the error | ```json API is down { "status": 503, "statusText": "Service Unavailable" } ``` | Parameter | Type | Description | | ---------- | ------ | ---------------------------- | | status | Number | The status code of the error | | statusText | String | The status text of the error | :::