diff --git a/README.md b/README.md index 037be49..b53294f 100644 --- a/README.md +++ b/README.md @@ -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). diff --git a/app/api/router.py b/app/api/router.py index b3fa1db..c034da5 100644 --- a/app/api/router.py +++ b/app/api/router.py @@ -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"]) \ No newline at end of file +api_router.include_router(items.router, prefix="/itemsss", tags=["items"]) \ No newline at end of file