API root view that provides information about available endpoints.

GET /?format=api
HTTP 200 OK
Allow: OPTIONS, GET
Content-Type: application/json
Vary: Accept

{
    "message": "Welcome to the Bookstore API",
    "version": "1.0.0",
    "documentation": "This API provides endpoints for managing a bookstore inventory and orders",
    "endpoints": {
        "products": {
            "url": "https://bookstore-app-api-738d721992b2.herokuapp.com/bookstore/v1/product/",
            "methods": [
                "GET",
                "POST"
            ],
            "description": "List all products or create a new product"
        },
        "categories": {
            "url": "https://bookstore-app-api-738d721992b2.herokuapp.com/bookstore/v1/category/",
            "methods": [
                "GET",
                "POST"
            ],
            "description": "List all categories or create a new category"
        },
        "orders": {
            "url": "https://bookstore-app-api-738d721992b2.herokuapp.com/bookstore/v1/order/",
            "methods": [
                "GET",
                "POST"
            ],
            "description": "List all orders or create a new order"
        },
        "admin": {
            "url": "https://bookstore-app-api-738d721992b2.herokuapp.com/admin/",
            "description": "Admin interface (requires admin credentials)"
        },
        "authentication": {
            "url": "https://bookstore-app-api-738d721992b2.herokuapp.com/api-token-auth/",
            "method": "POST",
            "description": "Obtain authentication token by posting username and password"
        }
    },
    "usage_example": {
        "authentication": "POST /api-token-auth/ with {'username': 'your_username', 'password': 'your_password'}",
        "using_token": "Include header 'Authorization: Token your_token_value' in subsequent requests"
    }
}