rename variable

This commit is contained in:
jb-alvarado 2022-07-03 21:20:54 +02:00
parent 6b6d8e175f
commit c682c935b9

View File

@ -20,7 +20,7 @@ JSON Response:
"status": 200, "status": 200,
"data": { "data": {
"id": 1, "id": 1,
"email": "user@example.org", "mail": "user@example.org",
"username": "user", "username": "user",
"token": "<TOKEN>" "token": "<TOKEN>"
} }
@ -36,13 +36,13 @@ From here on all request **must** contain the authorization header:\
Get current user, response is in JSON format Get current user, response is in JSON format
- **PUT** `/api/user/{user id}`\ - **PUT** `/api/user/{user id}`\
JSON Data: `{"email": "<EMAIL>", "password": "<PASS>"}` JSON Data: `{"mail": "<MAIL>", "password": "<PASS>"}`
- **POST** `/api/user/`\ - **POST** `/api/user/`\
JSON Data: JSON Data:
```JSON ```JSON
{ {
"email": "<EMAIL>", "mail": "<MAIL>",
"username": "<USER>", "username": "<USER>",
"password": "<PASS>", "password": "<PASS>",
"role_id": 1 "role_id": 1