mirror of
https://github.com/JonasunderscoreJones/docs.jonasjones.dev.git
synced 2025-10-23 02:59:18 +02:00
API revision 1
- added missing methods to projects - fixed other pages typos/missing features/etc. - added return types table
This commit is contained in:
parent
b512bd20ad
commit
4c0fe127b5
5 changed files with 1645 additions and 226 deletions
|
|
@ -17,6 +17,18 @@ Get a help message.
|
|||
```json
|
||||
Please refer to the wiki at https://wiki.jonasjones.dev/Api/
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="500" label="500">
|
||||
```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 |
|
||||
</TabItem>
|
||||
<TabItem value="503" label="503">
|
||||
```json
|
||||
|
|
@ -26,6 +38,10 @@ API is down
|
|||
"statusText": "Service Unavailable"
|
||||
}
|
||||
```
|
||||
| Parameter | Type | Description |
|
||||
| ---------- | ------ | ---------------------------- |
|
||||
| status | Number | The status code of the error |
|
||||
| statusText | String | The status text of the error |
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
:::
|
||||
|
|
@ -40,6 +56,18 @@ Get a ping back from the API
|
|||
```json
|
||||
pong
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="500" label="500">
|
||||
```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 |
|
||||
</TabItem>
|
||||
<TabItem value="503" label="503">
|
||||
```json
|
||||
|
|
@ -49,6 +77,10 @@ API is down
|
|||
"statusText": "Service Unavailable"
|
||||
}
|
||||
```
|
||||
| Parameter | Type | Description |
|
||||
| ---------- | ------ | ---------------------------- |
|
||||
| status | Number | The status code of the error |
|
||||
| statusText | String | The status text of the error |
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
:::
|
||||
|
|
@ -62,6 +94,18 @@ Get the version of the Rust api back-end
|
|||
```json
|
||||
["0.0.1+alpha-build01"]
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="500" label="500">
|
||||
```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 |
|
||||
</TabItem>
|
||||
<TabItem value="503" label="503">
|
||||
```json
|
||||
|
|
@ -71,6 +115,10 @@ API is down
|
|||
"statusText": "Service Unavailable"
|
||||
}
|
||||
```
|
||||
| Parameter | Type | Description |
|
||||
| ---------- | ------ | ---------------------------- |
|
||||
| status | Number | The status code of the error |
|
||||
| statusText | String | The status text of the error |
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
:::
|
||||
|
|
@ -89,6 +137,18 @@ Get the incoming headers of the request
|
|||
"...": "..."
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="500" label="500">
|
||||
```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 |
|
||||
</TabItem>
|
||||
<TabItem value="503" label="503">
|
||||
```json
|
||||
|
|
@ -98,6 +158,10 @@ API is down
|
|||
"statusText": "Service Unavailable"
|
||||
}
|
||||
```
|
||||
| Parameter | Type | Description |
|
||||
| ---------- | ------ | ---------------------------- |
|
||||
| status | Number | The status code of the error |
|
||||
| statusText | String | The status text of the error |
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
:::
|
||||
Loading…
Add table
Add a link
Reference in a new issue