Changes
Page history
Create New Restful Plan
authored
Oct 07, 2022
by
Derek Williams
Hide whitespace changes
Inline
Side-by-side
New-Restful-Plan.md
0 → 100644
View page @
5a6248fe
| Endpoint | Type | Example(s) |
|---------------------------------------------------|------|------------|
| /login | POST | |
| /logout/{playerID} | GET | |
| /quest | GET | |
| /quest/create | POST | |
| /quest/{questID} | GET | |
| /quest/{questID}/{playerID} | GET | |
| /quest/{questID}/objective | GET | |
| /quest/{questID}/objective/create | POST | |
| /quest/{questID}/objective/{objectiveID} | GET | |
| /quest/{questID}/objective/{objectiveID}/complete | POST | |
| /objective-complete | POST | |
| /objective-fetch-all/{playerID} | GET | |
| /player | POST | |
<br></br>
<br></br>
# Login
## Request
```
http
POST /login
```
## Payload
```
json
{
"username"
:
"guest"
,
"password"
:
"pw"
}
```
## Response
```
json
{
"playerID"
:
41
}
```
<br></br>
<br></br>
# Logout
## Request
```
http
GET /logout/41
```
## Response
```
Player 41 logged out.
```
<br></br>
<br></br>
\ No newline at end of file