Unauthenticate Endpoints - ShengHuaWu/cv-soar GitHub Wiki

Signup

method: POST

path: /users/signup

parameters:

last_name: String
first_name: String
email: String
password: String
  • All of them are required.

parameters example:

{
    "last_name": "Wu",
    "first_name": "ShengHua",
    "email": "[email protected]",
    "password": "my_password"
}

success response example:

{
    "user": {
        "id": 1,
        "last_name": "Wu",
        "first_name": "ShengHua",
        "email": "[email protected]",
        "avatar": "",
        "token": "tgb456rfv829"
    }
}

Login

method: POST

path: /users/login

parameters:

email: String
password: String
  • All of them are required.

parameters example:

{
    "email": "[email protected]",
    "password": "my_password"
}

success response example:

{
    "user": {
        "id": 1,
        "last_name": "Wu",
        "first_name": "ShengHua",
        "email": "[email protected]",
        "avatar": "",
        "token": "tgb456rfv829"
    }
}
⚠️ **GitHub.com Fallback** ⚠️