Update New Restful Plan authored by Derek Williams's avatar Derek Williams
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
| /players | GET | [Successful](New-Restful-Plan#player-list) | | /players | GET | [Successful](New-Restful-Plan#player-list) |
| /players/create | POST | | | /players/create | POST | |
| /players/{playerID} | GET | | | /players/{playerID} | GET | |
| /players/{playerID}/quests | GET | | | /players/{playerID}/quests | GET | [Successful](New-Restful-Plan#quest-list-for-player)|
| /players/{playerID}/quests/{questID} | GET | | | /players/{playerID}/quests/{questID} | GET | |
...@@ -146,4 +146,30 @@ GET /players ...@@ -146,4 +146,30 @@ GET /players
"major": "Software Engineering" "major": "Software Engineering"
} }
} }
```
# Quest List For Player
## Request
```http
GET /players/41/quests
```
## Response
```json
{
"1": {
"id": 1,
"name": "The Best Quest",
"desc": "The Quest that is The Best",
"startDate": "1970-01-01",
"endDate": "9999-12-30"
},
"2": {
"id": 2,
"name": "The Worst Quest",
"desc": "The Quest that is The Worst",
"startDate": "1970-01-01",
"endDate": "9999-12-30"
}
}
``` ```
\ No newline at end of file