Application fully migrated to modular approach
This commit is contained in:
@@ -163,7 +163,7 @@ curl -X POST "http://localhost:8000/api/v1/auth/login" \
|
||||
#### Use JWT Token
|
||||
```bash
|
||||
# Get token from login response and use in subsequent requests
|
||||
curl -X GET "http://localhost:8000/api/v1/products" \
|
||||
curl -X GET "http://localhost:8000/api/v1/product" \
|
||||
-H "Authorization: Bearer YOUR_JWT_TOKEN"
|
||||
```
|
||||
|
||||
@@ -171,7 +171,7 @@ curl -X GET "http://localhost:8000/api/v1/products" \
|
||||
|
||||
#### Create a product
|
||||
```bash
|
||||
curl -X POST "http://localhost:8000/api/v1/products" \
|
||||
curl -X POST "http://localhost:8000/api/v1/product" \
|
||||
-H "Authorization: Bearer YOUR_TOKEN" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
@@ -191,15 +191,15 @@ curl -X POST "http://localhost:8000/api/v1/products" \
|
||||
#### Get products with filtering
|
||||
```bash
|
||||
# Get all products
|
||||
curl -X GET "http://localhost:8000/api/v1/products" \
|
||||
curl -X GET "http://localhost:8000/api/v1/product" \
|
||||
-H "Authorization: Bearer YOUR_TOKEN"
|
||||
|
||||
# Filter by marketplace
|
||||
curl -X GET "http://localhost:8000/api/v1/products?marketplace=Amazon&limit=50" \
|
||||
curl -X GET "http://localhost:8000/api/v1/product?marketplace=Amazon&limit=50" \
|
||||
-H "Authorization: Bearer YOUR_TOKEN"
|
||||
|
||||
# Search products
|
||||
curl -X GET "http://localhost:8000/api/v1/products?search=Amazing&brand=BrandName" \
|
||||
curl -X GET "http://localhost:8000/api/v1/product?search=Amazing&brand=BrandName" \
|
||||
-H "Authorization: Bearer YOUR_TOKEN"
|
||||
```
|
||||
|
||||
@@ -239,7 +239,7 @@ curl -X GET "http://localhost:8000/api/v1/stock/1234567890123" \
|
||||
|
||||
#### Import products from CSV
|
||||
```bash
|
||||
curl -X POST "http://localhost:8000/api/v1/marketplace/import-from-marketplace" \
|
||||
curl -X POST "http://localhost:8000/api/v1/marketplace/import-product" \
|
||||
-H "Authorization: Bearer YOUR_TOKEN" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
@@ -252,7 +252,7 @@ curl -X POST "http://localhost:8000/api/v1/marketplace/import-from-marketplace"
|
||||
|
||||
#### Check import status
|
||||
```bash
|
||||
curl -X GET "http://localhost:8000/api/v1/marketplace/marketplace-import-status/1" \
|
||||
curl -X GET "http://localhost:8000/api/v1/marketplace/import-status/1" \
|
||||
-H "Authorization: Bearer YOUR_TOKEN"
|
||||
```
|
||||
|
||||
@@ -339,11 +339,11 @@ The test suite includes:
|
||||
- `GET /api/v1/auth/me` - Get current user info
|
||||
|
||||
### Product Endpoints
|
||||
- `GET /api/v1/products` - List products with filtering
|
||||
- `POST /api/v1/products` - Create new product
|
||||
- `GET /api/v1/products/{product_id}` - Get specific product
|
||||
- `PUT /api/v1/products/{product_id}` - Update product
|
||||
- `DELETE /api/v1/products/{product_id}` - Delete product
|
||||
- `GET /api/v1/product` - List products with filtering
|
||||
- `POST /api/v1/product` - Create new product
|
||||
- `GET /api/v1/product/{product_id}` - Get specific product
|
||||
- `PUT /api/v1/product/{product_id}` - Update product
|
||||
- `DELETE /api/v1/product/{product_id}` - Delete product
|
||||
|
||||
### Stock Endpoints
|
||||
- `POST /api/v1/stock` - Set stock quantity
|
||||
@@ -359,9 +359,9 @@ The test suite includes:
|
||||
- `GET /api/v1/shop/{shop_code}` - Get specific shop
|
||||
|
||||
### Marketplace Endpoints
|
||||
- `POST /api/v1/marketplace/import-from-marketplace` - Start CSV import
|
||||
- `GET /api/v1/marketplace/marketplace-import-status/{job_id}` - Check import status
|
||||
- `GET /api/v1/marketplace/marketplace-import-jobs` - List import jobs
|
||||
- `POST /api/v1/marketplace/import-product` - Start CSV import
|
||||
- `GET /api/v1/marketplace/import-status/{job_id}` - Check import status
|
||||
- `GET /api/v1/marketplace/import-jobs` - List import jobs
|
||||
|
||||
### Statistics Endpoints
|
||||
- `GET /api/v1/stats` - Get general statistics
|
||||
|
||||
Reference in New Issue
Block a user