Change items endpoint path to itemsss

This commit is contained in:
Automated Action 2025-05-17 16:47:14 +00:00
parent 8dd3d8dd8b
commit 9ea8338942
2 changed files with 8 additions and 8 deletions

View File

@ -99,7 +99,7 @@ The API will be available at http://localhost:8000.
### Items
- `GET /api/v1/items` - List all items (with pagination, filtering, and search)
- `GET /api/v1/itemsss` - List all items (with pagination, filtering, and search)
- Query Parameters:
- `filter` - Filter text to match in name and description
- `active` - Filter by active status (true/false)
@ -108,7 +108,7 @@ The API will be available at http://localhost:8000.
- `skip` - Number of records to skip (for pagination)
- `limit` - Maximum number of records to return (for pagination)
- `GET /api/v1/items/search` - Search for items by name or description
- `GET /api/v1/itemsss/search` - Search for items by name or description
- Query Parameters:
- `filter` - Filter text to match in name and description (required)
- `active` - Filter by active status (true/false)
@ -117,10 +117,10 @@ The API will be available at http://localhost:8000.
- `skip` - Number of records to skip (for pagination)
- `limit` - Maximum number of records to return (for pagination)
- `GET /api/v1/items/{item_id}` - Get a specific item
- `POST /api/v1/items` - Create a new item
- `PUT /api/v1/items/{item_id}` - Update an item
- `DELETE /api/v1/items/{item_id}` - Delete an item
- `GET /api/v1/itemsss/{item_id}` - Get a specific item
- `POST /api/v1/itemsss` - Create a new item
- `PUT /api/v1/itemsss/{item_id}` - Update an item
- `DELETE /api/v1/itemsss/{item_id}` - Delete an item
## Search Functionality
@ -133,7 +133,7 @@ The API supports searching items by:
Example search request:
```
GET /api/v1/items/search?filter=phone&active=true&price_min=10000&price_max=50000
GET /api/v1/itemsss/search?filter=phone&active=true&price_min=10000&price_max=50000
```
This will find all active items that contain "phone" in their name or description, with a price between 100.00 and 500.00 (prices are stored in cents).

View File

@ -4,4 +4,4 @@ from app.api.endpoints import health, items
api_router = APIRouter()
api_router.include_router(health.router, prefix="/health", tags=["health"])
api_router.include_router(items.router, prefix="/items", tags=["items"])
api_router.include_router(items.router, prefix="/itemsss", tags=["items"])