User Endpoint
Create a User
Http Method: POST
Endpoint: /user
Request Body:
{
firstName: "Ian",
lastName: "Doe",
age: 25,
email: "[email protected]",
mobileNumber: "0411111111",
password: "password123",
}
Response:
201 Created
Body:
{
id: "787054eb-d4b1-4bf6-96a1-ba47033bd644",
firstName: "Ian",
lastName: "Doe",
age: 25,
email: "[email protected]",
mobileNumber: "0411111111",
password: "password123",
}
Get a User
Http Method: GET
Endpoint: /user/{id}
Response:
200 OK
Body:
{
id: "787054eb-d4b1-4bf6-96a1-ba47033bd644",
firstName: "Ian",
lastName: "Doe",
email: "[email protected]",
mobileNumber: "0411111111",
password: "password123",
}
Update a User
Http Method: PUT
Endpoint: /user/{id}
Request Body:
{
firstName: "Ian",
lastName: "Doe",
email: "[email protected]",
mobileNumber: "0411111111",
password: "password123",
}
Response:
201 Created
Body:
{
id: "787054eb-d4b1-4bf6-96a1-ba47033bd644",
firstName: "Ian",
lastName: "Doe",
email: "[email protected]",
mobileNumber: "0411111111",
password: "password123",
}