cURL
curl --request POST \ --url https://faisalshop.mvp-apps.ae/api/v2/admin/register \ --header 'Content-Type: application/json' \ --data ' { "name": "John Doe", "email": "john@example.com", "password": "<string>", "password_confirmation": "<string>" } '
{ "token": "<string>", "user": { "id": 123, "name": "<string>", "email": "jsmith@example.com", "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": "john@example.com", "password": "securepassword123", "password_confirmation": "securepassword123" }'
await axios.post( '/api/v2/admin/register', { name: 'John Doe', email: 'john@example.com', password: 'securepassword123', password_confirmation: 'securepassword123' } );
"John Doe"
"john@example.com"
8
Account created successfully
Show child attributes