Registration


url

https://api.pycon.shop/rest-auth/registration/

Method

POST

Data Params

Key Type required Value
username char true 유저 네임
password1 char true 패스워드
password2 char true 패스워드 확인
email email true unique

Success Response

{
    "key": "e22520478bba20d64d4055e378c84f8wefae5547"
}

Response Detail

Key Value
key Token

Error Response

  • 필수 필드 누락
{
    "username": [
        "This field is required."
    ],
    "email": [
        "This field is required."
    ]
}
  • 필수 필드 중복
{
    "username": [
        "A user with that username already exists."
    ],
    "email": [
        "A user is already registered with this e-mail address."
    ]
}
  • 패스워드 불일치
{
    "non_field_errors": [
        "The two password fields didn't match."
    ]
}

results matching ""

    No results matching ""