-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
103 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
## Change my background | ||
|
||
배경을 변경합니다 | ||
|
||
## Request | ||
### HTTP METHOD : `PUT` | ||
|
||
### url : `https://render.gitanimals.org/users/backgrounds` | ||
|
||
### PathVariable | ||
- {username}: 사용자의 이름 | ||
|
||
### RequestHeader | ||
- Authorization: `{token}` | ||
|
||
## Response | ||
|
||
```json | ||
{ | ||
"type": "SNOWY" | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
## Get my background | ||
|
||
내가 갖고있는 모든 배경을 조회합니다. | ||
|
||
## Request | ||
### HTTP METHOD : `GET` | ||
|
||
### url : `https://render.gitanimals.org/users/{username}/backgrounds` | ||
|
||
### PathVariable | ||
- {username}: 사용자의 이름 | ||
|
||
## Response | ||
|
||
```json | ||
{ | ||
"id": "1", | ||
"name": "devxb", | ||
"backgrounds": [ | ||
{ | ||
"type": "SNOWY" | ||
}, | ||
{ | ||
"type": "WHITE" | ||
} | ||
... | ||
] | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
## Buy background | ||
|
||
배경화면을 구매합니다. | ||
|
||
## Request | ||
|
||
### HTTP METHOD : `POST` | ||
|
||
### url : `https://api.gitanimals.org/shops/backgrounds` | ||
|
||
### RequestHeader | ||
|
||
- Authorization: `{token}` | ||
|
||
### Response Body | ||
|
||
200 OK | ||
|
||
```json | ||
{ | ||
"type": "SNOWY" | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
## Get background | ||
|
||
모든 구매가능한 배경을 조회합니다. | ||
|
||
## Request | ||
|
||
### HTTP METHOD : `GET` | ||
|
||
### url : `https://api.gitanimals.org/shops/backgrounds` | ||
|
||
### Response Body | ||
|
||
200 OK | ||
|
||
```json | ||
{ | ||
"backgrounds": [ | ||
{ | ||
"type": "SHOP", | ||
"price": "100000" | ||
}, | ||
{ | ||
"type": "SNOWY", | ||
"price": "100000" | ||
}, | ||
... | ||
] | ||
} | ||
``` |