Coder Social home page Coder Social logo

supply's Introduction

Logo

Supply

Bu projede WebAPI bestpractise'lerini uygulamaya çalıştım.

Bu proje tedarik bilgilerini kayıt altına alır.

Müşterilerin alışveriş bilgilerini ve geçmiş tedarik bilgilerinin kolayca görüntülenmesi, tüm tedarik bilgilerinin kayıt altına alınarak veriler üretilmesi amaçlanmaktadır.

Kullanılan Teknoloji Ve Teknikler

Asp.Net Core for Restful api
MsSql
EntityFramework Core

OOP
SOLID principles
Layered Architecture Design Pattern
Repository Pattern
Dependency injection
IOC Containers

API Kullanımı

Customers

HTTP Verb Route POST body Description
GET /api/Customer Empty List all customers.
POST /api/Customer {"id": 0,"name": "string","companyName": "string","phoneNumber": "string","address": "string"} Create a new customer.
DELETE /api/Customer { "id": 0, "name": "string", "companyName": "string", "phoneNumber": "string", "address": "string" } Delete a customer.
PUT /api/Customer { "id": 0, "name": "string", "companyName": "string", "phoneNumber": "string", "address": "string" } Update a customer with new info.
GET ​/api​/Customer​/{id} Empty Get a customer.

PaymentDetails

HTTP Verb Route POST body Description
GET /api/PaymentDetails Empty List all PaymentDetails.
POST /api/PaymentDetails { "id": 0, "supplyId": 0, "previousDept": 0, "recievedMoney": 0, "remainingDept": 0 } Create a new PaymentDetail.
DELETE /api/PaymentDetails { "id": 0, "supplyId": 0, "previousDept": 0, "recievedMoney": 0, "remainingDept": 0 } Delete a PaymentDetail.
PUT /api/PaymentDetails { "id": 0, "supplyId": 0, "previousDept": 0, "recievedMoney": 0, "remainingDept": 0 } Update a PaymentDetail with new info.
GET ​/api​/PaymentDetails​/{id} Empty Get a PaymentDetail.
GET /api/PaymentDetails/GetAllWithSupplyDetail Empty Get All PaymentDetails With SupplyDetails.
GET /api/PaymentDetails/GetByIdWithSupplyDetail/{id} Empty Get a PaymentDetail With SupplyDetail.

Product

HTTP Verb Route POST body Description
GET /api/Product Empty List all Products.
POST /api/Product { "id": 0, "name": "string", "unitPrice": 0, "unitsInStock": 0 } Create a new Product.
DELETE /api/Product { "id": 0, "name": "string", "unitPrice": 0, "unitsInStock": 0 } Delete a Product.
PUT /api/Product { "id": 0, "name": "string", "unitPrice": 0, "unitsInStock": 0 } Update a Product with new info.
GET ​/api​/Product​/{id} Empty Get a Product.

Supply

HTTP Verb Route POST body Description
GET /api/Supply Empty List all Supplys.
POST /api/Supply { "id": 0, "customerId": 0, "supplyDate": "2021-10-10T01:49:54.142Z", "totalPrice": 0 } Create a new Supply.
DELETE /api/Supply { "id": 0, "customerId": 0, "supplyDate": "2021-10-10T01:49:54.142Z", "totalPrice": 0 } Delete a Supply.
PUT /api/Supply { "id": 0, "customerId": 0, "supplyDate": "2021-10-10T01:49:54.142Z", "totalPrice": 0 } Update a Supply with new info.
GET ​/api​/Supply​/{id} Empty Get a Supply.

SupplyDetail

HTTP Verb Route POST body Description
GET /api/SupplyDetail Empty List all SupplyDetails.
POST /api/SupplyDetail { "id": 0, "supplyId": 0, "productId": 0, "quantity": 0, "unitPrice": 0 } Create a new SupplyDetail.
DELETE /api/SupplyDetail { "id": 0, "supplyId": 0, "productId": 0, "quantity": 0, "unitPrice": 0 } Delete a SupplyDetail.
PUT /api/SupplyDetail { "id": 0, "supplyId": 0, "productId": 0, "quantity": 0, "unitPrice": 0 } Update a SupplyDetail with new info.
GET ​/api​/SupplyDetail​/{id} Empty Get a SupplyDetail.
GET ​/api/SupplyDetail/GetAllWithDetail Empty Get all SupplyDetail With Details.
GET ​/api/SupplyDetail/GetByIdWithDetail/{id} Empty Get a SupplyDetail With Details.

Bilgisayarınızda Çalıştırın

Projeyi klonlayın

  git clone https://github.com/MustafaCelal/Supply.git

Proje dizinine gidin

  cd Supply

Gerekli paketleri yükleyin

  dotnet restore

Sunucuyu çalıştırın

  dotnet run

Geri Bildirim

Katkılara ve Geri Bildirimlere her zaman açığım!

Herhangi bir geri bildiriminiz varsa, lütfen [email protected] adresinden bana ulaşın.

İlişkili Projeler

Çok yakında Front-End projesi de gelecek takipte kalınız :)

Supply_Front-End

Lisans

MIT

supply's People

Contributors

mustafacelal 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.