Sign up a new user
Responses
-
200 application/json
User signed up successfully
-
500 application/json
Internal server error
-
409 application/json
User already exists
-
400 application/json
Bad request (e.g., invalid name provided)
-
403 application/json
auth header is missing or invalid
-
401 application/json
auth header is missing or invalid
POST /alpha/signup/{name}/
curl \
-X POST http://localhost:8080/alpha/signup/{name}/ \
-H "auth: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"school_id":"string","grade":11,"year":2026}'
Request example
{
"school_id": "string",
"grade": 11,
"year": 2026
}
Response examples (200)
{
"creation_date": "string"
}
Response examples (500)
{
"message": "Failed to read from database"
}
Response examples (409)
{
"message": "User already exists"
}
Response examples (400)
{
"message": "Invalid request body"
}
Response examples (403)
{
"message": "Auth failed, invalid token"
}
Response examples (401)
{
"message": "Auth failed, invalid token"
}