cURL
curl --request POST \ --url https://faisalshop.mvp-apps.ae/api/v2/admin/register \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "John Doe", "email": "[email protected]", "password": "<string>", "password_confirmation": "<string>" } '
{ "token": "<string>", "user": { "id": 123, "name": "<string>", "email": "[email protected]", "user_type": "<string>", "is_active": "<string>", "created_at": "2023-11-07T05:31:56Z" } }
curl -X POST \ https://faisalshop.mvp-apps.ae/api/v2/admin/register \ -H 'Content-Type: application/json' \ -d '{ "name": "John Doe", "email": "[email protected]", "password": "securepassword123", "password_confirmation": "securepassword123" }'
await axios.post( '/api/v2/admin/register', { name: 'John Doe', email: '[email protected]', password: 'securepassword123', password_confirmation: 'securepassword123' } );
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
"John Doe"
"[email protected]"
8
Account created successfully
Show child attributes