Authentication API

Creating a new User

Registers a new user in the database

Parameters

Name Description
name User name
email User email
password User password
password_confirmation User password confirmation

Request

Headers

Content-Type: application/json
Host: example.org

Route

POST /v1/signup

cURL

curl "http://extracker-api.herokuapp.com/v1/signup" -d '' -X POST \
	-H "Content-Type: application/json" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json; charset=utf-8

Status

422

Body

Request

Headers

Content-Type: application/json
Host: example.org

Route

POST /v1/signup

Body

cURL

curl "http://extracker-api.herokuapp.com/v1/signup" -d '{"name":"Maru","email":"euqueme@gmail.com","password":"foobar","password_confirmation":"foobar"}' -X POST \
	-H "Content-Type: application/json" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json; charset=utf-8

Status

201

Body