Details for the POST /signup/basic endpoint.
Request Body Schema:
name: stringemail: stringpassword: stringprofilePicUrl: string
Success Response (200):
Returns statusCode: "10000", a success message, and a data object containing the user (with _id, name, roles, and profilePicUrl) and tokens (accessToken and refreshToken).
Error Response (400):
Returns statusCode: "10001" and message "Bad Parameters".
// Success Response (200)
{
"statusCode": "10000",
"message": "Signup Successful",
"data": {
"user": {
"_id": "63a19e5ba2730d1599d46c0b",
"name": "Janishar Ali",
"roles": [
{
"_id": "63a197b39e07f859826e6626",
"code": "LEARNER",
"status": true
}
],
"profilePicUrl": "https://avatars1.githubusercontent.com/u/11065002?s=460&u=1e8e42bda7e6f579a2b216767b2ed986619bbf78&v=4"
},
"tokens": {
"accessToken": "some_token",
"refreshToken": "some_token"
}
}
}
// Error Response (400)
{
"statusCode": "10001",
"message": "Bad Parameters"
}