Skip to content

A demo API for creating, retrieving, updating and deleting customer, product and order entities.

Notifications You must be signed in to change notification settings

ysfada/CRUD-API

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CRUD-API

A demo API for creating, retrieving, updating and deleting customer, product and order entities.

Run Locally

Clone the project

  git clone https://github.com/ysfada/CRUD-API.git

Migrations

*Don't forget to set DefaultConnection in appsettings.json

  cd ./CRUD-API/src/Infrastructure
  dotnet ef --startup-project ../Api database update

Start the API

  cd ./CRUD-API/src
  dotnet run --project Api

API runs at http://localhost:5000/swagger

Install frontend dependencies and serve

  cd ./CRUD-API/src/Frontend
  npm install
  npm run serve

Frontend runs at http://localhost:8080

API Reference

Customer

  GET /api/customer
  POST /api/customer
  GET /api/customer/${id}
  PUT /api/customer/${id}
  DELETE /api/customer/${id}

Product

  GET /api/product
  POST /api/product
  GET /api/product/${id}
  PUT /api/product/${id}
  DELETE /api/product/${id}

Order

  GET /api/order
  POST /api/order
  GET /api/order/${id}
  PUT /api/order/${id}
  DELETE /api/order/${id}

Screenshots

App Screenshot 1 App Screenshot 2 App Screenshot 3 App Screenshot 4

Acknowledgements

About

A demo API for creating, retrieving, updating and deleting customer, product and order entities.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 53.8%
  • Vue 36.0%
  • TypeScript 8.8%
  • Other 1.4%