Skip to content

Create New User

Yongsung Heo edited this page Apr 19, 2019 · 7 revisions

Create New User

Request user registration and get authentication token used for calling server APIs. If user write correct form for registration, server will return the Bearer authentication token.

  • URL : /api/v1/auth/signup
  • Method : POST

Request Header

No header is required.

Request Body Parameters

Name Type Description
email string required. Email which is written by user. This email is unique and identify each user.
passwordHash string required.
passwordHash2 string required.

Response Body

Name Type Description
email string Viaggio user email.
name string Name which user registered.
token string essential. Viaggio authentication token.
AWS_IdentityId string essential.
AWS_Token string essential.

Examples

POST /api/v1/auth/signup

{
    "email": "VIAGGIO_USER_EMAIL",
    "name": "VIAGGIO_USER_NAME",
    "token": "VIAGGIO_AUTH_TOKEN_STRING",
    "AWS_IdentityId": "DIFFICULT_STRING",
    "AWS_Token": "DIFFICULT_STRING"
}

Clone this wiki locally