Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 2.5 KB

web-api-structure.md

File metadata and controls

8 lines (7 loc) · 2.5 KB

Web API structure

Domain Interfaces & Services DTOs Controllers Endpoints
Product Management IProductService, ProductService ProductRequestDTO, ProductResponseDTO ProductController POST /api/v1/products, GET /api/v1/products, GET /api/v1/products/{productId}, PUT /api/v1/products/{productId}, DELETE /api/v1/products/{productId}
Order Management IOrderService, OrderService, IOrderItemService, OrderItemService OrderRequestDTO, OrderResponseDTO, OrderItemRequestDTO, OrderItemResponseDTO OrderController POST /api/v1/orders, GET /api/v1/orders, GET /api/v1/orders/{orderId}, PUT /api/v1/orders/{orderId}, DELETE /api/v1/orders/{orderId}, POST /api/v1/orders/{orderId}/items, GET /api/v1/orders/{orderId}/items, GET /api/v1/orders/{orderId}/items/{itemId}, PUT /api/v1/orders/{orderId}/items/{itemId}, DELETE /api/v1/orders/{orderId}/items/{itemId}
Shopping Cart ICartService, CartService, ICartItemService, CartItemService CartRequestDTO, CartResponseDTO, CartItemRequestDTO, CartItemResponseDTO CartController POST /api/v1/carts, GET /api/v1/carts/{cartId}, PUT /api/v1/carts/{cartId}, DELETE /api/v1/carts/{cartId}, POST /api/v1/carts/{cartId}/items, GET /api/v1/carts/{cartId}/items, GET /api/v1/carts/{cartId}/items/{itemId}, PUT /api/v1/carts/{cartId}/items/{itemId}, DELETE /api/v1/cart/{cartId}/items/{itemId}
Review Management IReviewService, ReviewService ReviewRequestDTO, ReviewResponseDTO ReviewController POST /api/v1/reviews, GET /api/v1/reviews, GET /api/v1/reviews/{reviewId}, PUT /api/v1/reviews/{reviewId}, DELETE /api/v1/reviews/{reviewId}