curl --request POST \
--url https://api.example.com/api/signup \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"email": "<string>",
"password": "<string>"
}
'{
"id": 123,
"name": "<string>",
"email": "<string>"
}Create a new user account
curl --request POST \
--url https://api.example.com/api/signup \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"email": "<string>",
"password": "<string>"
}
'{
"id": 123,
"name": "<string>",
"email": "<string>"
}curl -X POST http://localhost:8000/api/signup \
-H "Content-Type: application/json" \
-d '{
"name": "John Doe",
"email": "[email protected]",
"password": "securepassword123"
}'
{
"id": 1,
"name": "John Doe",
"email": "[email protected]"
}
Show 400 - Email already registered
{
"detail": "Email already registered"
}