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.
Create Docker Container
docker build --tag kirtasite .
run container
docker run -p 8080:8080 kirtasite
Base Url
api/v1/
{
"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".
Password Update
user/password/0
{
"UserId":0,
"Username":"",
"User":{}
}
Get
customers
Get
customer/0
Add
customer
Put
customer/0
{
"UserId":0,
"AddressId":0,
"CompanyName":"",
"Score":0.0,
"User":{},
"Address":{}
}
Get
stationeries
Get
stationery/0
Post
stationery
Put
stationery/0
{
"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
Dosya eklemek için multipart/form-data headeri kullanılmalıdır. key => "file"
{
"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
{
"Id":0,
"StationeryId":0,
"Info":"",
"Price":0.0
}
Get
prices
Get
price/0
Get By StationeryId
prices/stationery/0
Post
price
Put
price/0
{
"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