Code Monkey home page Code Monkey logo

dotnet-core-api-photo-gallery's Introduction

.NET Core API Photo Gallery

LICENCE

About code

Rest API in .NET Core 5 for photo album management.

Methods

Albums

  • 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

Photos

  • 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

How to run the project

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.

Examples of usage

License

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 ⭐️.

Author

Anderson Pereira dos Santos

Linkedin

Github

dotnet-core-api-photo-gallery's People

Contributors

andersonpereiradossantos avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.