This is a solution for the Team RockStars Backend assesment
- ASP.NET Core 6
- Entity Framework Core
- Response caching (for caching)
- AutoMapper
- Docker
- Clean Code
- CQS
- Response caching
- REST API Naming Conventions
> msbuild RockStars.slnOpen the solution and use the shortcut: Ctrl+Shift+B
Press the IISExpress Play button.
Run following commands in the Solutions folder:
> cd RockStars.API
> docker build -t rockstars .
> docker run -it --rm -p 5000:80 --name core_rockstars rockstarsRun following commands in the Solutions folder:
> cd RockStars.API
> dotnet publish -c Release -o published
> dotnet published\RockStars.API.dll- api/artistcollections/{Ids}
- api/songcollections{Query}
- api/artists/{artistId}/songs
- api/artists/{artistId}/songs/{songId}
- api/artists
- api/artists/{artistId}
- api/artists{Query}
Note: Can be used with any of the .json files or objects in the .json file provided artists.json & songs.json as Body.
- api/artistcollections
- api/songcollections
- api/artists/{artistId}/songs
- api/artists
- api/artists/{artistId}/songs/{songId}
- api/artists/{artistId}
- api/artists/{artistId}/songs/{songId}
- api/artists/{artistId}/songs/{songId}
[
{
"op":"replace",
"path":"/Name",
"value": "Patch Test Name"
}
]1 - Run the application with the method of your choosing.
2 - Use the routes to add artists OR songs parsed as body. (This can be done copying the provided files as JSON Body):
- api/artistcollections
OR
- api/songcollections
3 - Use the routes to get songs OR artists with the specific filters of your choosing:
- api/songcollections{Query}
OR
- api/artists{Query}
4 - Use any of the provided routes to test Creation, Deletion & Update functionalities.