-
Notifications
You must be signed in to change notification settings - Fork 1
Order Service API Routes
Kullanıcının şuanki daha teslim edilmemiş siparişlerini listeler.
Request Format:
{
}Response Format:
{
Orders: [
OrderId: {
Products: [
{
ProductId: int,
ProductName: string,
ProductPrice: decimal,
ProductQuantity: int
}
...
],
OrderDate: string
}...
]
}Kantinciye daha teslim edilmemiş siparişleri listeler.
Request Format:
{
}Response Format:
{
Orders: [
RoomName: {
UserId: {
OrderId: {
Products: [
{
ProductId: int,
ProductName: string,
ProductPrice: decimal,
ProductQuantity: int
}
...
],
OrderDate: string
}...
}...
}...
]
}Kantinciye daha teslim edilmemiş siparişleri oda numaralarına göre listeler.
Request Format:
{
}Response Format:
{
Orders: [
RoomName: {
UserId: {
OrderId: {
Products: [
{
ProductId: int,
ProductName: string,
ProductPrice: decimal,
ProductQuantity: int
}
...
],
OrderDate: string
}...
}...
}...
]
}Kantinci siparişi teslim ederken kullanıcı bilgilerini girmesini sağlar (kim ne kadar ödedi veya borçlandı) ve siparişi sonlandırır.
Request Format:
{
orderId: string
}Response Format:
{
isSuccess: bool,
Message: string
}Kantinci siparişi teslim ederken kullanıcı bilgilerini girmesini sağlar (kim ne kadar ödedi veya borçlandı) ve siparişi sonlandırır.
Request Format:
{
orderId: string
}Response Format:
{
isSuccess: bool,
Message: string
}Kullanıcının geçmiş siparişlerini listeler.[Filtreleme yapılarak isteğe göre ödenmiş veya ödenmemiş siparişleri de getirebilir.]
Request Format:
{
itemsPerPage: int,
pageNumber: int
}Response Format:
{
Orders: [
OrderId: {
Products: [
{
ProductId: int,
ProductName: string,
ProductPrice: decimal,
ProductQuantity: int
}
...
],
OrderDate: string
}...
]
}Kantinciye gelen tüm geçmiş siparişleri listeler.
Request Format:
{
itemsPerPage: int,
pageNumber: int
}Response Format:
{
Orders: [
RoomName: {
UserId: {
OrderId: {
Products: [
{
ProductId: int,
ProductName: string,
ProductPrice: decimal,
ProductQuantity: int
}
...
],
OrderDate: string
}...
}...
}...
]
}