POST /api/signup/
{
"username": "str",
"password": "str",
"name": "str",
"surname": "str",
"email": "str",
"gender": "str",
"birthdate": "str",
}
{"message": "Add new user"}
Each user has their own unique 10 digit token. This token will be used for every request to define a user.
POST /api/login/
{
"username": "str",
"password": "str"
}
{"message": "abcde12345"}
Name | Method | Route | Request headers | Request body | Expected result | Explanation |
---|---|---|---|---|---|---|
Sign up a user | POST | /api/signup/ | None | { "username": str, "password": str, "name": str, "surname": str, "email": str, "gender": str, "birthdate": str } |
{"message": "Add new user"} |
- |
Get a token | POST | /api/login/ | None | { "username": str, "password": str } |
{"message": "abcde12345"(example of token)} |
- |