#Swagger documentation for Emoji Petz
## HTTP://localhost:8080/rest/work
Generating documentation from Spring MVC annotations
**Version** v1
[**Terms of Service**]()
# APIs
## /players
### GET
#### Request
##### Parameters
#### Response
| Status Code | Reason | Response Model |
|-------------|-------------|----------------|
| 200 | successful operation | IterablePlayer|
### POST
#### Request
**Content-Type: ** application/json
##### Parameters
| Name |
Located in |
Required |
Description |
Default |
Schema |
| body |
body |
no |
|
- |
Player
|
#### Response
| Status Code | Reason | Response Model |
|-------------|-------------|----------------|
| 200 | successful operation | Player|
## /players/id/{player_id}
### GET
#### Request
##### Parameters
| Name |
Located in |
Required |
Description |
Default |
Schema |
| player_id |
path |
yes |
|
- |
integer (int64) |
#### Response
| Status Code | Reason | Response Model |
|-------------|-------------|----------------|
| 200 | successful operation | Player|
## /players/{playerId}
### DELETE
#### Request
##### Parameters
| Name |
Located in |
Required |
Description |
Default |
Schema |
| playerId |
path |
yes |
|
- |
integer (int64) |
#### Response
| Status Code | Reason | Response Model |
|-------------|-------------|----------------|
| 204 | | - |
## /players/{playerId}/unfollow/{playerId2}
### DELETE
#### Request
##### Parameters
| Name |
Located in |
Required |
Description |
Default |
Schema |
| playerId |
path |
yes |
|
- |
integer (int64) |
| playerId2 |
path |
yes |
|
- |
integer (int64) |
#### Response
| Status Code | Reason | Response Model |
|-------------|-------------|----------------|
| 204 | | - |
## /players/{player_oauthId}
### GET
#### Request
##### Parameters
| Name |
Located in |
Required |
Description |
Default |
Schema |
| player_oauthId |
path |
yes |
|
- |
string |
#### Response
| Status Code | Reason | Response Model |
|-------------|-------------|----------------|
| 200 | successful operation | Player|
### PUT
#### Request
**Content-Type: ** application/json
##### Parameters
| Name |
Located in |
Required |
Description |
Default |
Schema |
| player_oauthId |
path |
yes |
|
- |
string |
| body |
body |
no |
|
- |
Player
|
#### Response
**Content-Type: ** text/plain
| Status Code | Reason | Response Model |
|-------------|-------------|----------------|
| 200 | successful operation | Player|
## /players/{player_oauthId}/follow/{other_player_oauthId}
### POST
#### Request
##### Parameters
| Name |
Located in |
Required |
Description |
Default |
Schema |
| player_oauthId |
path |
yes |
|
- |
string |
| other_player_oauthId |
path |
yes |
|
- |
string |
#### Response
| Status Code | Reason | Response Model |
|-------------|-------------|----------------|
| 200 | successful operation | Player|
# Definitions
## Player
| name |
type |
required |
description |
example |
| id |
integer (int64)
|
optional |
- |
|
| oauthId |
string
|
optional |
- |
|
| display_name |
string
|
optional |
- |
|
| status |
string
|
optional |
- |
|
| wall |
string
|
optional |
- |
|
| pet_name |
string
|
optional |
- |
|
| pet_emoji |
string
|
optional |
- |
|
| level |
integer (int32)
|
optional |
- |
|
| xp |
integer (int32)
|
optional |
- |
|
| maxXp |
integer (int32)
|
optional |
- |
|
| timeStamp |
integer (int64)
|
optional |
- |
|
| couragePoints |
integer (int64)
|
optional |
- |
|
| couragePointsMax |
integer (int32)
|
optional |
- |
|
| manaPoints |
integer (int64)
|
optional |
- |
|
| manaPointsMax |
integer (int32)
|
optional |
- |
|
| healthPoints |
integer (int64)
|
optional |
- |
|
| healthPointsMax |
integer (int32)
|
optional |
- |
|
| powerPoints |
integer (int64)
|
optional |
- |
|
| powerPointsMax |
integer (int32)
|
optional |
- |
|