POST
/users/register
curl \
-X POST http://localhost:3003/api/dev/users/register \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"Test","lastName":"Test123","email":"carte.jahha\u0026gmail.com","phone":"58076667","profile":"AL"}'
Request example
{
"name": "Test",
"lastName": "Test123",
"email": "carte.jahha&gmail.com",
"phone": "58076667",
"profile": "AL"
}
Request examples
{
"name": "Test",
"email": "carte.jahha&gmail.com",
"phone": "58076667",
"profile": "AL",
"lastName": "Test123"
}
Response examples (400)
# Headers
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Resource-Policy: same-origin
Origin-Agent-Cluster: ?1
Referrer-Policy: no-referrer
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Content-Type-Options: nosniff
X-DNS-Prefetch-Control: off
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Retry-After: 148.059
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 84
X-RateLimit-Reset: Mon Oct 30 2023 02:46:38 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 129
ETag: W/"81-CJzdz95rnu/oqJtkzJ3LB7AJ57w"
Date: Mon, 30 Oct 2023 01:44:10 GMT
Connection: keep-alive
Keep-Alive: timeout=5
# Payload
{
"code": 400,
"message": {
"RESPONSE_TEXT": "Oups! Il faut remplir les champs obligatoires",
"RESPONSE_CODE": "MISSING_FIELDS_MESSAGE"
}
}
Response examples (400)
# Headers
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Resource-Policy: same-origin
Origin-Agent-Cluster: ?1
Referrer-Policy: no-referrer
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Content-Type-Options: nosniff
X-DNS-Prefetch-Control: off
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Retry-After: 148.059
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 84
X-RateLimit-Reset: Mon Oct 30 2023 02:46:38 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 129
ETag: W/"81-CJzdz95rnu/oqJtkzJ3LB7AJ57w"
Date: Mon, 30 Oct 2023 01:44:10 GMT
Connection: keep-alive
Keep-Alive: timeout=5
# Payload
{}