Skip to content

I had to rewrite the backend because I updated the database.

Notifications You must be signed in to change notification settings

daddydemir/Kirtasite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kırtasite

Bu proje sayesinde kırtasiyelerde sıra beklemenize gerek kalmaz, siparişinizi verirsiniz ve siparişiniz hazırlandığında size haber veririz. Bu repo Kırtasite uygulamasının backend kodlarını içermektedir.

Dockerize


Create Docker Container

docker build --tag kirtasite .

run container

docker run -p 8080:8080 kirtasite

Base Url

api/v1/

USER

{
	"Id":0,
	"RoleId":0,
	"Password": "",
	"ImagePath":"",
	"Phone":"",
	"Mail":"",
	"Role": {}
}

Image Upload & Update

user/image/0

İstek multipart/form-data headerı ile yapılmalıdır. key => "file".

ÖRNEK KULLANIM

Password Update

user/password/0

CUSTOMER

{
	"UserId":0,
	"Username":"",
	"User":{}
}

Get

customers

Get

customer/0

Add

customer

Put

customer/0

STATIONERY

{
	"UserId":0,
	"AddressId":0,
	"CompanyName":"",
	"Score":0.0,
	"User":{},
	"Address":{}
}

Get

stationeries

Get

stationery/0

Post

stationery

Put

stationery/0

ADDRESS

{
	"Id":0,
	"CityId":0,
	"DistrictId":0,
	"Header":"",
	"X":"",
	"Y":"",
	"City":{},
	"District":{}
}

Get

address/0

Get By CityId

addresses/city/0

Post

address

Put

address/0

FILE

Dosya eklemek için multipart/form-data headeri kullanılmalıdır. key => "file"

ÖRNEK KULLANIM

{
	"Id":0,
	"CustomerId":0,
	"Private":true,
	"FilePath":"",
	"FolderId":"",
	"CreatedDate":'00-00-0000',
	"Customer":{}
}

Get

file/0

Get By CustomerId

files/customer/0

Post

file

Put

file/0

PRICE

{
	"Id":0,
	"StationeryId":0,
	"Info":"",
	"Price":0.0
}

Get

prices

Get

price/0

Get By StationeryId

prices/stationery/0

Post

price

Put

price/0

ORDER

{
	"Id":0,
	"FileId":0,
	"CustomerId":0,
	"StationeryId":0,
	"StatusId":0,
	"TotalPrice":0.0,
	"CreatedDate":'00-00-0000',
	"DeliveryDate":'00-00-0000',
	"File":{},
	"Customer":{},
	"Stationery":{},
	"Status":{}
}

Get

order/0

Get By CustomerId

orders/customer/0

Get By StationeryId

orders/stationery/0

Post

order

Put Cancel

order/0/cancel

Put Confirm

order/0/confirm

Put Ready

order/0/ready

Put Complete

order/0/complete

STATUS

{
	"Id":0,
	"Content":""
}

Get

statuses

Get

status/0

COMMENT

{
	"Id":0,
	"CustomerId":0,
	"StationeryId":0,
	"Content":"",
	"CreatedDate":'00-00-0000',
	"Score":0.0,
	"Customer":{},
	"Stationery":{}
}

Get

comment/0

Get By StationeryId

comments/stationery/0

Get By CustomerId

comments/customer/0

Post

comment

Put

comment/0

About

I had to rewrite the backend because I updated the database.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published