- Create new user profile
- Get user's own profile
- Get user profile by ID
- Get all users profiles
- Update user's own profile
- Image link
- Name
- Amount of posts
Clone the repository and run the following command:
docker compose up
-
GET /users/{userId}- Get user profile by ID. -
GET /users- Get user's own profile by HEADER userID -
GET /users/all- Get all users profiles -
POST /users- Create a new user profile by HEADER userID- Example:
- {
"name":"User's name",
"imageLink":"https://http.cat/201"
}
- {
- Example:
-
PUT /users- Update user's own profile by HEADER userID- Example:
- {
"name":"User's new name",
"imageLink":"https://http.cat/200"
}
- {
- Example: