WChallenge is a project about the consumption of the API https://jsonplaceholder.typicode.com, design in Spring Boot, H2 database and JDK 8.
Method: Get
Url: http://localhost:8080/users
Method: Get
Url: http://localhost:8080/photos
Method: Get
Url: http://localhost:8080/albums
Method: Get
Url: http://localhost:8080/comments/name/{name}
Method: Get
Url: http://localhost:8080/photos/user/{userId}
Method: Post
Url: http://localhost:8080/share_album
Body:
{ "albumId": 1, "userId": 1, "permission": "READ" }
Method: Post
Url: http://localhost:8080/share_album
Body:
{ "albumId": 1, "userId": 1, "permission": "WRITE" }
Method: Put
Url: http://localhost:8080/share_album
Body:
{ "albumId": 1, "userId": 1, "permission": "WRITE" }
Or
{ "albumId": 1, "userId": 1, "permission": "READ" }
Method: Get
Url: http://localhost:8080/share_album/{permission}/{userId}
Permissions: READ or WRITE