cURL
curl --request POST \ --url https://api.example.com/auth/create-admin \ --header 'Content-Type: application/json' \ --data ' { "email": "<string>", "password": "<string>" } '
{ "message": "<string>", "user": { "id": "<string>", "email": "<string>", "role": "<string>" } }
Authorization: Bearer {access_token}
Show user properties
curl -X POST https://api.yourapp.com/auth/create-admin \ -H "Content-Type: application/json" \ -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \ -d '{ "email": "[email protected]", "password": "securepassword123" }'
{ "message": "Admin user created successfully", "user": { "id": "550e8400-e29b-41d4-a716-446655440000", "email": "[email protected]", "role": "admin" } }