Create user.

POST /api/v1/users/signup
application/json

Body Required

  • firstName string Required

    The first name of the user.

  • lastName string Required

    The last name of the user.

  • email string Required

    The email address of the user.

  • password string Required

    The password of the user.

  • confirmPassword string Required

    The confirm password of the user.

Responses

  • 401 */*

    Unauthorized

    Hide response attribute Show response attribute object
    • error object
      Hide error attributes Show error attributes object
      • code string
      • message string
      • target string
      • details array[object]
        Hide details attributes Show details attributes object
        • code string
        • message string
        • target string
  • 404 */*

    Not Found

    Hide response attribute Show response attribute object
    • error object
      Hide error attributes Show error attributes object
      • code string
      • message string
      • target string
      • details array[object]
        Hide details attributes Show details attributes object
        • code string
        • message string
        • target string
  • 500 */*

    Internal Server Error

    Hide response attribute Show response attribute object
    • error object
      Hide error attributes Show error attributes object
      • code string
      • message string
      • target string
      • details array[object]
        Hide details attributes Show details attributes object
        • code string
        • message string
        • target string
  • 400 */*

    Bad Request

    Hide response attribute Show response attribute object
    • error object
      Hide error attributes Show error attributes object
      • code string
      • message string
      • target string
      • details array[object]
        Hide details attributes Show details attributes object
        • code string
        • message string
        • target string
  • 201 */*

    User created.

    Hide response attributes Show response attributes object
    • id string
    • firstName string
    • lastName string
    • email string
POST /api/v1/users/signup
curl \
 --request POST 'http://localhost:8080/api/v1/users/signup' \
 --header "Content-Type: application/json" \
 --data '{"firstName":"Robert","lastName":"Smith","email":"abc@xyz.com","password":"password","confirmPassword":"password"}'
Request examples
{
  "firstName": "Robert",
  "lastName": "Smith",
  "email": "abc@xyz.com",
  "password": "password",
  "confirmPassword": "password"
}
Response examples (401)
{
  "error": {
    "code": "string",
    "message": "string",
    "target": "string",
    "details": [
      {
        "code": "string",
        "message": "string",
        "target": "string"
      }
    ]
  }
}
Response examples (404)
{
  "error": {
    "code": "string",
    "message": "string",
    "target": "string",
    "details": [
      {
        "code": "string",
        "message": "string",
        "target": "string"
      }
    ]
  }
}
Response examples (500)
{
  "error": {
    "code": "string",
    "message": "string",
    "target": "string",
    "details": [
      {
        "code": "string",
        "message": "string",
        "target": "string"
      }
    ]
  }
}
Response examples (400)
{
  "error": {
    "code": "string",
    "message": "string",
    "target": "string",
    "details": [
      {
        "code": "string",
        "message": "string",
        "target": "string"
      }
    ]
  }
}
Response examples (201)
{
  "id": "string",
  "firstName": "string",
  "lastName": "string",
  "email": "string"
}