Rest API in .NET Core 5 for photo album management.
- Show all albums :
GET /api/Album/
- Show album by id:
GET /api/Album/:id
- Create album:
POST /api/Album/
- Update album:
PUT /api/Album/:id
- Delete album:
DELETE /api/Album/:id
- Show all photos :
GET /api/Photo/
- Show photo by id:
GET /api/Photo/:id
- Show photos by album id:
GET /api/Photo/:albumId
- Download photo by id:
GET /api/Photo/DownloadFile/:id/:thumb?
- Create photo:
POST /api/Photo/:id
- Update photo:
PUT /api/Photo/:id
- Delete photo:
DELETE /api/Photo/:id
Prerequisites: .NET Core 5 or higher.
# Clone repository
git clone https://github.com/andersonpereiradossantos/DotnetCoreApiPhotoGallery.git
# Create a folder called wwwroot in the root of your project and a folder called upload within it;
# Change your local database connection string in appsettings.json;
# Restore nuget dependencies:
PM> Update-Package -Reinstall -ProjectName DotnetCoreApiPhotoGallery
# Run the migrations to create the database structure:
PM> update-database
# Run the project.
This project is shared under the MIT license. This means you can modify and use it however you want, even for comercial use. If you liked it, consider marking a ⭐️.
Anderson Pereira dos Santos