Information consumed from the next external service that counts with the data of users, their albums and their photos; in addition to their posts and comments from other users about them: https://jsonplaceholder.typicode.com/
This information on the service is accessible through this API, contemplating:
- Users.
- The photos.
- The albums of the system and of each user.
- The photos of a user.
- Register an album shared with a user and their permissions.
- Change a user's permissions for a specific album.
- Bring in all users who have a certain permission regarding a specific album.
See Challenge for the details of the tasks.
class WxUser {
private final String url = "http://localhost:8080/wx";
List<User> getUsers() {
RestTemplate restTemplate = new RestTemplate();
return restTemplate.getForEntity(url + "/users", String.class);
}
}
Base path: /wx
/users
Params: id: Integer
/users?id=#
albumId: Integer
######Params not required:
read: Boolean
write: Boolean
/usersByPermission?albumId=#&read=#&write=#
/user
/photos
id: Integer
/photo?id=#
id: Integer
/photosByUser?id=#
/albums
id: Integer
/album?id=#
id: Integer
/albumsByUser?id=#
/register
/posts
id: Integer
/post?id=#
/comments
id: Integer
/comment?id=#
id: Integer
/commentsByUser?id=#
id: Integer
/permissionsByUser?id=#
id: Integer
albumId: Integer
read: Boolean
write: Boolean
/permissionsByUserAndAlbum?id=#&albumId=#&read=#&write=#
/permission
Coded with ❤️ by Juan Patricio Doyle ✨2020