Change items endpoint path to itemsss
This commit is contained in:
parent
8dd3d8dd8b
commit
9ea8338942
14
README.md
14
README.md
@ -99,7 +99,7 @@ The API will be available at http://localhost:8000.
|
|||||||
|
|
||||||
### Items
|
### 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:
|
- Query Parameters:
|
||||||
- `filter` - Filter text to match in name and description
|
- `filter` - Filter text to match in name and description
|
||||||
- `active` - Filter by active status (true/false)
|
- `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)
|
- `skip` - Number of records to skip (for pagination)
|
||||||
- `limit` - Maximum number of records to return (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:
|
- Query Parameters:
|
||||||
- `filter` - Filter text to match in name and description (required)
|
- `filter` - Filter text to match in name and description (required)
|
||||||
- `active` - Filter by active status (true/false)
|
- `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)
|
- `skip` - Number of records to skip (for pagination)
|
||||||
- `limit` - Maximum number of records to return (for pagination)
|
- `limit` - Maximum number of records to return (for pagination)
|
||||||
|
|
||||||
- `GET /api/v1/items/{item_id}` - Get a specific item
|
- `GET /api/v1/itemsss/{item_id}` - Get a specific item
|
||||||
- `POST /api/v1/items` - Create a new item
|
- `POST /api/v1/itemsss` - Create a new item
|
||||||
- `PUT /api/v1/items/{item_id}` - Update an item
|
- `PUT /api/v1/itemsss/{item_id}` - Update an item
|
||||||
- `DELETE /api/v1/items/{item_id}` - Delete an item
|
- `DELETE /api/v1/itemsss/{item_id}` - Delete an item
|
||||||
|
|
||||||
## Search Functionality
|
## Search Functionality
|
||||||
|
|
||||||
@ -133,7 +133,7 @@ The API supports searching items by:
|
|||||||
|
|
||||||
Example search request:
|
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).
|
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).
|
||||||
|
@ -4,4 +4,4 @@ from app.api.endpoints import health, items
|
|||||||
|
|
||||||
api_router = APIRouter()
|
api_router = APIRouter()
|
||||||
api_router.include_router(health.router, prefix="/health", tags=["health"])
|
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"])
|
Loading…
x
Reference in New Issue
Block a user