Create a Web API that when called
- Calls, combines and returns the result of:
- Allows an integrator to filter on the user id - so just returns the albums and photos relevant to a single user.
To start hosting the API, simply run the PhotoAlbumServer
solution.
Tests are located in the Tests
directory.
-
http://localhost:58189/api/photoAlbum Returns list of all
PhotoAlbum
provided by the typicode.com api. -
http://localhost:58189/api/photoAlbum/user/{userId} Returns list of
PhotoAlbum
where the UserId matches.
PhotoAlbum:
{
album: Album,
photos: Photo[]
}
Album:
{
id: int,
userId: int,
title: string
}
Photo:
{
id: int,
albumId: int,
title: string,
url: Uri,
thumbnail: Uri
}