mirror of https://github.com/statping/statping
Updated API (markdown)
parent
2e6b061e8c
commit
dac1cea793
7
API.md
7
API.md
|
@ -47,7 +47,7 @@ POST Data:
|
|||
### Deleting Service
|
||||
- Endpoint: `/api/services/{id}`
|
||||
- Method: `DELETE`
|
||||
- Response: [Service](https://github.com/hunterlong/statup/wiki/API#service-response)
|
||||
- Response: [Object Response](https://github.com/hunterlong/statup/wiki/API#object-response)
|
||||
|
||||
Response:
|
||||
```json
|
||||
|
@ -65,14 +65,17 @@ The users API endpoint will show you users that are registered inside your Statu
|
|||
### View All Users
|
||||
- Endpoint: `/api/users`
|
||||
- Method: `GET`
|
||||
- Response: Array of [Users](https://github.com/hunterlong/statup/wiki/API#user-response)
|
||||
|
||||
### Viewing User
|
||||
- Endpoint: `/api/users/{id}`
|
||||
- Method: `GET`
|
||||
- Response: [User](https://github.com/hunterlong/statup/wiki/API#user-response)
|
||||
|
||||
### Creating New User
|
||||
- Endpoint: `/api/users`
|
||||
- Method: `POST`
|
||||
- Response: [User](https://github.com/hunterlong/statup/wiki/API#user-response)
|
||||
|
||||
POST Data:
|
||||
```json
|
||||
|
@ -87,6 +90,7 @@ POST Data:
|
|||
### Updating User
|
||||
- Endpoint: `/api/users/{id}`
|
||||
- Method: `POST`
|
||||
- Response: [User](https://github.com/hunterlong/statup/wiki/API#user-response)
|
||||
|
||||
POST Data:
|
||||
```json
|
||||
|
@ -101,6 +105,7 @@ POST Data:
|
|||
### Deleting User
|
||||
- Endpoint: `/api/services/{id}`
|
||||
- Method: `DELETE`
|
||||
- Response: [Object Response](https://github.com/hunterlong/statup/wiki/API#object-response)
|
||||
|
||||
Response:
|
||||
```json
|
||||
|
|
Loading…
Reference in New Issue