To start the app run:
docker-compose up
You can try out deployed version of this project here:
ec2-3-86-110-7.compute-1.amazonaws.com:8080
GET /
[
{
"id": string,
"firstName": string,
"lastName": string,
"email": string,
"image": string
}
]
The id
is generated automatically with uuid()
The image
attribute contains a link to open image
POST /
Parameter | Type | Description |
---|---|---|
firstName |
string |
Required. User first name |
lastName |
string |
Required. User last name |
email |
string |
Required. User email in proper email format |
image |
file |
Required. User image (Valid types: image/jpeg , image/png , image/gif ) |
Returns newly created user
{
"id": string,
"firstName": string,
"lastName": string,
"email": string,
"image": string
}
GET /user/:id
{
"id": string,
"firstName": string,
"lastName": string,
"email": string,
"image": string
}
PATCH /user/:id
Parameter | Type | Description |
---|---|---|
firstName |
string |
User first name |
lastName |
string |
User last name |
email |
string |
User email in proper email format |
image |
file |
User image (Valid types: image/jpeg , image/png , image/gif ) |
Returns updated user
{
"id": string,
"firstName": string,
"lastName": string,
"email": string,
"image": string
}
DELETE /user/:id
Returns deleted user data
{
"id": string,
"firstName": string,
"lastName": string,
"email": string,
"image": string
}
Status Code | Description |
---|---|
200 | OK |
400 | BAD REQUEST |
404 | NOT FOUND |
500 | INTERNAL SERVER ERROR |