Sign Up

Set of forms for user to register for the application. A POST request is sent to the endpoint after the user has accepted the terms and conditions. (0.4.0 Terms & Conditions below).

Screenshots

Sign up form 1

Sign up form 1

Sign up form 2

Sign up form 2

terms and conditions

Terms and conditions

API

User register (Create)

Request

curl -X 'POST' \
  'https://st.igate-test.co.uk/api/v1/auth/register/' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "email": "sterling@sterling.com",
  "password": "AfvcByio",
  "accepts_terms": true,
  "accepts_marketing": true
}'

Response

  • Type: 201 Created

{
  "access": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzM3NTU0MTYyLCJpYXQiOjE3Mzc1NTA1NjIsImp0aSI6Ijk3YjQ4MzRiOGIwMzQxMWY5YzU4NmEwOTY2NWMyMWY1IiwidXNlcl9pZCI6NDF9.Zjb9A9VMJGJgYUoN7uQfyIjmkE6qaU7YtzcADjlm0jQ",
  "refresh": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTczNzYzNjk2MiwiaWF0IjoxNzM3NTUwNTYyLCJqdGkiOiIwYmNhMmEwMmY3NDk0NGFlODdmNjJjMzcxNzcyMmVmMSIsInVzZXJfaWQiOjQxfQ.BsrPGsCm-qbuzwheTzfF_gF2DBvAo2OyLcWVWzVih1I",
  "user": {
    "url": "https://st.igate-test.co.uk/api/v1/users/c0eb56f0-453a-4520-b392-75f38c6fe1d8/",
    "uuid": "c0eb56f0-453a-4520-b392-75f38c6fe1d8",
    "username": "sterling@sterling.com",
    "email": "sterling@sterling.com",
    "accepts_terms": true,
    "accepts_marketing": true,
    "profile": "https://st.igate-test.co.uk/api/v1/user/profile/cb7d3f93-ccce-48d4-bf82-4c3dcb54d6ee/",
    "address": "https://st.igate-test.co.uk/api/v1/user/address/898c6364-eaff-49bc-8ce6-7256029a81d1/",
    "vehicles": [],
    "occupations": []
  }
}

Note: the contents of this response is the same as a successful user login.

Trustpilot

The trustpilot api shows how to retrieve the review score.

Social registration

This feature is currently in development and will be available in a future release.