marketplace refactoring
This commit is contained in:
@@ -37,8 +37,8 @@ All API endpoints are versioned using URL path versioning:
|
||||
- Configuration management
|
||||
|
||||
### Products (`/products/`)
|
||||
- Product CRUD operations
|
||||
- Product search and filtering
|
||||
- MarketplaceProduct CRUD operations
|
||||
- MarketplaceProduct search and filtering
|
||||
- Bulk operations
|
||||
|
||||
### Shops (`/shops/`)
|
||||
@@ -98,7 +98,7 @@ Content-Type: application/json
|
||||
Most list endpoints support pagination:
|
||||
|
||||
```bash
|
||||
GET /api/v1/product?skip=0&limit=20
|
||||
GET /api/v1/marketplace/product?skip=0&limit=20
|
||||
```
|
||||
|
||||
Response includes pagination metadata:
|
||||
@@ -116,14 +116,14 @@ Response includes pagination metadata:
|
||||
Many endpoints support filtering and search:
|
||||
|
||||
```bash
|
||||
GET /api/v1/product?search=laptop&category=electronics&min_price=100
|
||||
GET /api/v1/marketplace/product?search=laptop&category=electronics&min_price=100
|
||||
```
|
||||
|
||||
### Sorting
|
||||
Use the `sort` parameter with field names:
|
||||
|
||||
```bash
|
||||
GET /api/v1/product?sort=name&order=desc
|
||||
GET /api/v1/marketplace/product?sort=name&order=desc
|
||||
```
|
||||
|
||||
## Status Codes
|
||||
|
||||
Reference in New Issue
Block a user