{ "module": "openapi_first.templates.vet_app.routes", "content": { "path": "openapi_first.templates.vet_app.routes", "docstring": "Veterinary Clinic route handlers bound via OpenAPI operationId.\n\nHandlers explicitly control HTTP response status codes to ensure runtime\nbehavior matches the OpenAPI contract. Domain models defined using\nPydantic are used for request and response payloads.\n\nNo routing decorators, path definitions, or implicit framework behavior\nappear in this module. All routing, HTTP methods, and schemas are defined\nin the OpenAPI specification.", "objects": { "Response": { "name": "Response", "kind": "alias", "path": "openapi_first.templates.vet_app.routes.Response", "signature": "", "docstring": null }, "HTTPException": { "name": "HTTPException", "kind": "alias", "path": "openapi_first.templates.vet_app.routes.HTTPException", "signature": "", "docstring": null }, "UploadFile": { "name": "UploadFile", "kind": "alias", "path": "openapi_first.templates.vet_app.routes.UploadFile", "signature": "", "docstring": null }, "StreamingResponse": { "name": "StreamingResponse", "kind": "alias", "path": "openapi_first.templates.vet_app.routes.StreamingResponse", "signature": "", "docstring": null }, "subscribe": { "name": "subscribe", "kind": "alias", "path": "openapi_first.templates.vet_app.routes.subscribe", "signature": "", "docstring": null }, "unsubscribe": { "name": "unsubscribe", "kind": "alias", "path": "openapi_first.templates.vet_app.routes.unsubscribe", "signature": "", "docstring": null }, "ParentCreate": { "name": "ParentCreate", "kind": "alias", "path": "openapi_first.templates.vet_app.routes.ParentCreate", "signature": "", "docstring": null }, "VetCreate": { "name": "VetCreate", "kind": "alias", "path": "openapi_first.templates.vet_app.routes.VetCreate", "signature": "", "docstring": null }, "TreatmentCreate": { "name": "TreatmentCreate", "kind": "alias", "path": "openapi_first.templates.vet_app.routes.TreatmentCreate", "signature": "", "docstring": null }, "PetCreate": { "name": "PetCreate", "kind": "alias", "path": "openapi_first.templates.vet_app.routes.PetCreate", "signature": "", "docstring": null }, "AppointmentCreate": { "name": "AppointmentCreate", "kind": "alias", "path": "openapi_first.templates.vet_app.routes.AppointmentCreate", "signature": "", "docstring": null }, "list_parents": { "name": "list_parents", "kind": "function", "path": "openapi_first.templates.vet_app.routes.list_parents", "signature": "", "docstring": "List parents (paginated).\n\nParameters\n----------\nlimit : int\n Maximum number of records to return.\noffset : int\n Number of records to skip.\n\nReturns\n-------\ndict\n Paginated response with ``total`` and ``items``." }, "create_parent": { "name": "create_parent", "kind": "function", "path": "openapi_first.templates.vet_app.routes.create_parent", "signature": "", "docstring": "Create a parent.\n\nParameters\n----------\npayload : ParentCreate\n Parent data excluding the ``id`` field.\n\nReturns\n-------\nParent\n The newly created parent." }, "get_parent": { "name": "get_parent", "kind": "function", "path": "openapi_first.templates.vet_app.routes.get_parent", "signature": "", "docstring": "Retrieve a single parent by ID.\n\nParameters\n----------\nid : int\n Identifier of the parent.\n\nReturns\n-------\nParent\n The requested parent.\n\nRaises\n------\nHTTPException\n 404 if the parent does not exist." }, "update_parent": { "name": "update_parent", "kind": "function", "path": "openapi_first.templates.vet_app.routes.update_parent", "signature": "", "docstring": "Update an existing parent.\n\nParameters\n----------\nid : int\n Identifier of the parent.\npayload : ParentCreate\n Updated parent data.\n\nReturns\n-------\nParent\n The updated parent.\n\nRaises\n------\nHTTPException\n 404 if the parent does not exist." }, "delete_parent": { "name": "delete_parent", "kind": "function", "path": "openapi_first.templates.vet_app.routes.delete_parent", "signature": "", "docstring": "Delete an existing parent.\n\nParameters\n----------\nid : int\n Identifier of the parent.\n\nRaises\n------\nHTTPException\n 404 if the parent does not exist." }, "list_vets": { "name": "list_vets", "kind": "function", "path": "openapi_first.templates.vet_app.routes.list_vets", "signature": "", "docstring": "List vets (paginated)." }, "create_vet": { "name": "create_vet", "kind": "function", "path": "openapi_first.templates.vet_app.routes.create_vet", "signature": "", "docstring": "Create a vet." }, "get_vet": { "name": "get_vet", "kind": "function", "path": "openapi_first.templates.vet_app.routes.get_vet", "signature": "", "docstring": "Retrieve a single vet by ID." }, "update_vet": { "name": "update_vet", "kind": "function", "path": "openapi_first.templates.vet_app.routes.update_vet", "signature": "", "docstring": "Update an existing vet." }, "delete_vet": { "name": "delete_vet", "kind": "function", "path": "openapi_first.templates.vet_app.routes.delete_vet", "signature": "", "docstring": "Delete an existing vet." }, "list_treatments": { "name": "list_treatments", "kind": "function", "path": "openapi_first.templates.vet_app.routes.list_treatments", "signature": "", "docstring": "List treatments (catalogue).\n\nReturns\n-------\nlist[Treatment]\n A list of treatment domain objects." }, "create_treatment": { "name": "create_treatment", "kind": "function", "path": "openapi_first.templates.vet_app.routes.create_treatment", "signature": "", "docstring": "Add a treatment (admin only)." }, "get_treatment": { "name": "get_treatment", "kind": "function", "path": "openapi_first.templates.vet_app.routes.get_treatment", "signature": "", "docstring": "Retrieve a single treatment by ID." }, "update_treatment": { "name": "update_treatment", "kind": "function", "path": "openapi_first.templates.vet_app.routes.update_treatment", "signature": "", "docstring": "Update an existing treatment." }, "delete_treatment": { "name": "delete_treatment", "kind": "function", "path": "openapi_first.templates.vet_app.routes.delete_treatment", "signature": "", "docstring": "Delete an existing treatment." }, "list_pets": { "name": "list_pets", "kind": "function", "path": "openapi_first.templates.vet_app.routes.list_pets", "signature": "", "docstring": "List pets (paginated)." }, "create_pet": { "name": "create_pet", "kind": "function", "path": "openapi_first.templates.vet_app.routes.create_pet", "signature": "", "docstring": "Create a pet." }, "get_pet": { "name": "get_pet", "kind": "function", "path": "openapi_first.templates.vet_app.routes.get_pet", "signature": "", "docstring": "Retrieve a single pet by ID." }, "update_pet": { "name": "update_pet", "kind": "function", "path": "openapi_first.templates.vet_app.routes.update_pet", "signature": "", "docstring": "Update an existing pet." }, "delete_pet": { "name": "delete_pet", "kind": "function", "path": "openapi_first.templates.vet_app.routes.delete_pet", "signature": "", "docstring": "Delete an existing pet." }, "upload_pet_photo": { "name": "upload_pet_photo", "kind": "function", "path": "openapi_first.templates.vet_app.routes.upload_pet_photo", "signature": "", "docstring": "Upload a pet photo.\n\nParameters\n----------\nid : int\n Identifier of the pet.\nfile : UploadFile\n Image file to upload.\n\nReturns\n-------\ndict\n A confirmation with the pet ID." }, "list_appointments": { "name": "list_appointments", "kind": "function", "path": "openapi_first.templates.vet_app.routes.list_appointments", "signature": "", "docstring": "List appointments (paginated, filterable)." }, "create_appointment": { "name": "create_appointment", "kind": "function", "path": "openapi_first.templates.vet_app.routes.create_appointment", "signature": "", "docstring": "Create an appointment." }, "get_appointment": { "name": "get_appointment", "kind": "function", "path": "openapi_first.templates.vet_app.routes.get_appointment", "signature": "", "docstring": "Retrieve a single appointment by ID." }, "update_appointment": { "name": "update_appointment", "kind": "function", "path": "openapi_first.templates.vet_app.routes.update_appointment", "signature": "", "docstring": "Update an existing appointment." }, "delete_appointment": { "name": "delete_appointment", "kind": "function", "path": "openapi_first.templates.vet_app.routes.delete_appointment", "signature": "", "docstring": "Delete an existing appointment." }, "stream_actions": { "name": "stream_actions", "kind": "function", "path": "openapi_first.templates.vet_app.routes.stream_actions", "signature": "", "docstring": "Stream animal actions via SSE, scoped to a pet's species." } } } }