Create a new user account
cURL
curl --request POST \ --url https://api.example.com/auth/register \ --header 'Content-Type: application/json' \ --data ' { "firstname": "<string>", "lastname": "<string>", "email": "<string>", "password": "<string>", "googleId": "<string>", "displayPicture": "<string>" } '
{ "201": {}, "400": {}, "id": 123, "firstname": "<string>", "lastname": "<string>", "email": "<string>", "borrowedBooks": [ {} ], "displayPicture": "<string>" }
POST /auth/register
curl -X POST https://api.example.com/auth/register \ -H "Content-Type: application/json" \ -d '{ "firstname": "John", "lastname": "Doe", "email": "[email protected]", "password": "securePassword123" }'
{ "id": 1, "firstname": "John", "lastname": "Doe", "email": "[email protected]", "borrowedBooks": [] }
Email already in use