P0: fix doc:// -> docs:// across standards src/server/registry and regenerate stale mongo-ops bundle. P1: build recipe + spec-first routing now document the openapi-first codegen fast path (models/routes with --inject-request/--package). P4: CRUD template documents the model-vs-document id rule (BaseDocument owns id). P5: authless guidance (omit security keys). P6: template gains generic infra (http_cache, keyed SSE bus, KV port+in-memory+Redis), interfaces/openapi.py + .dockerignore + generic build test registered as components, and a get_app_template tool; genericity matrix marks LLM pool + human-in-loop as reference-app patterns. P7: intake/build/start_app/trial prompts. P8: template ships tests/integration/test_openapi_app_builds.py. Rebuilt standards + openapi-first bundles and re-collected.
184 lines
7.0 KiB
JSON
184 lines
7.0 KiB
JSON
{
|
|
"module": "openapi_first.templates.vet_app.data",
|
|
"content": {
|
|
"path": "openapi_first.templates.vet_app.data",
|
|
"docstring": "In-memory data store for the Veterinary Clinic example.\n\nThis module is NOT thread-safe and is intended for demos and scaffolds only.\n\nIt provides minimal, process-local data stores for the five veterinary\nclinic entities. Each store exposes standard CRUD operations backed by\na simple dictionary.\n\nThis module intentionally avoids:\n- persistence\n- concurrency guarantees\n- transactional semantics\n- validation beyond what Pydantic provides\n\nThis module is not part of the ``openapi_first`` library API surface.",
|
|
"objects": {
|
|
"list_parents": {
|
|
"name": "list_parents",
|
|
"kind": "function",
|
|
"path": "openapi_first.templates.vet_app.data.list_parents",
|
|
"signature": "list_parents() -> list[Parent]",
|
|
"docstring": null
|
|
},
|
|
"get_parent": {
|
|
"name": "get_parent",
|
|
"kind": "function",
|
|
"path": "openapi_first.templates.vet_app.data.get_parent",
|
|
"signature": "get_parent(parent_id: int) -> Parent",
|
|
"docstring": null
|
|
},
|
|
"create_parent": {
|
|
"name": "create_parent",
|
|
"kind": "function",
|
|
"path": "openapi_first.templates.vet_app.data.create_parent",
|
|
"signature": "create_parent(payload: ParentCreate) -> Parent",
|
|
"docstring": null
|
|
},
|
|
"update_parent": {
|
|
"name": "update_parent",
|
|
"kind": "function",
|
|
"path": "openapi_first.templates.vet_app.data.update_parent",
|
|
"signature": "update_parent(parent_id: int, payload: ParentCreate) -> Parent",
|
|
"docstring": null
|
|
},
|
|
"delete_parent": {
|
|
"name": "delete_parent",
|
|
"kind": "function",
|
|
"path": "openapi_first.templates.vet_app.data.delete_parent",
|
|
"signature": "delete_parent(parent_id: int) -> None",
|
|
"docstring": null
|
|
},
|
|
"list_vets": {
|
|
"name": "list_vets",
|
|
"kind": "function",
|
|
"path": "openapi_first.templates.vet_app.data.list_vets",
|
|
"signature": "list_vets() -> list[Vet]",
|
|
"docstring": null
|
|
},
|
|
"get_vet": {
|
|
"name": "get_vet",
|
|
"kind": "function",
|
|
"path": "openapi_first.templates.vet_app.data.get_vet",
|
|
"signature": "get_vet(vet_id: int) -> Vet",
|
|
"docstring": null
|
|
},
|
|
"create_vet": {
|
|
"name": "create_vet",
|
|
"kind": "function",
|
|
"path": "openapi_first.templates.vet_app.data.create_vet",
|
|
"signature": "create_vet(payload: VetCreate) -> Vet",
|
|
"docstring": null
|
|
},
|
|
"update_vet": {
|
|
"name": "update_vet",
|
|
"kind": "function",
|
|
"path": "openapi_first.templates.vet_app.data.update_vet",
|
|
"signature": "update_vet(vet_id: int, payload: VetCreate) -> Vet",
|
|
"docstring": null
|
|
},
|
|
"delete_vet": {
|
|
"name": "delete_vet",
|
|
"kind": "function",
|
|
"path": "openapi_first.templates.vet_app.data.delete_vet",
|
|
"signature": "delete_vet(vet_id: int) -> None",
|
|
"docstring": null
|
|
},
|
|
"list_treatments": {
|
|
"name": "list_treatments",
|
|
"kind": "function",
|
|
"path": "openapi_first.templates.vet_app.data.list_treatments",
|
|
"signature": "list_treatments() -> list[Treatment]",
|
|
"docstring": null
|
|
},
|
|
"get_treatment": {
|
|
"name": "get_treatment",
|
|
"kind": "function",
|
|
"path": "openapi_first.templates.vet_app.data.get_treatment",
|
|
"signature": "get_treatment(treatment_id: int) -> Treatment",
|
|
"docstring": null
|
|
},
|
|
"create_treatment": {
|
|
"name": "create_treatment",
|
|
"kind": "function",
|
|
"path": "openapi_first.templates.vet_app.data.create_treatment",
|
|
"signature": "create_treatment(payload: TreatmentCreate) -> Treatment",
|
|
"docstring": null
|
|
},
|
|
"update_treatment": {
|
|
"name": "update_treatment",
|
|
"kind": "function",
|
|
"path": "openapi_first.templates.vet_app.data.update_treatment",
|
|
"signature": "update_treatment(treatment_id: int, payload: TreatmentCreate) -> Treatment",
|
|
"docstring": null
|
|
},
|
|
"delete_treatment": {
|
|
"name": "delete_treatment",
|
|
"kind": "function",
|
|
"path": "openapi_first.templates.vet_app.data.delete_treatment",
|
|
"signature": "delete_treatment(treatment_id: int) -> None",
|
|
"docstring": null
|
|
},
|
|
"list_pets": {
|
|
"name": "list_pets",
|
|
"kind": "function",
|
|
"path": "openapi_first.templates.vet_app.data.list_pets",
|
|
"signature": "list_pets() -> list[Pet]",
|
|
"docstring": null
|
|
},
|
|
"get_pet": {
|
|
"name": "get_pet",
|
|
"kind": "function",
|
|
"path": "openapi_first.templates.vet_app.data.get_pet",
|
|
"signature": "get_pet(pet_id: int) -> Pet",
|
|
"docstring": null
|
|
},
|
|
"create_pet": {
|
|
"name": "create_pet",
|
|
"kind": "function",
|
|
"path": "openapi_first.templates.vet_app.data.create_pet",
|
|
"signature": "create_pet(payload: PetCreate) -> Pet",
|
|
"docstring": null
|
|
},
|
|
"update_pet": {
|
|
"name": "update_pet",
|
|
"kind": "function",
|
|
"path": "openapi_first.templates.vet_app.data.update_pet",
|
|
"signature": "update_pet(pet_id: int, payload: PetCreate) -> Pet",
|
|
"docstring": null
|
|
},
|
|
"delete_pet": {
|
|
"name": "delete_pet",
|
|
"kind": "function",
|
|
"path": "openapi_first.templates.vet_app.data.delete_pet",
|
|
"signature": "delete_pet(pet_id: int) -> None",
|
|
"docstring": null
|
|
},
|
|
"list_appointments": {
|
|
"name": "list_appointments",
|
|
"kind": "function",
|
|
"path": "openapi_first.templates.vet_app.data.list_appointments",
|
|
"signature": "list_appointments() -> list[Appointment]",
|
|
"docstring": null
|
|
},
|
|
"get_appointment": {
|
|
"name": "get_appointment",
|
|
"kind": "function",
|
|
"path": "openapi_first.templates.vet_app.data.get_appointment",
|
|
"signature": "get_appointment(appointment_id: int) -> Appointment",
|
|
"docstring": null
|
|
},
|
|
"create_appointment": {
|
|
"name": "create_appointment",
|
|
"kind": "function",
|
|
"path": "openapi_first.templates.vet_app.data.create_appointment",
|
|
"signature": "create_appointment(payload: AppointmentCreate) -> Appointment",
|
|
"docstring": null
|
|
},
|
|
"update_appointment": {
|
|
"name": "update_appointment",
|
|
"kind": "function",
|
|
"path": "openapi_first.templates.vet_app.data.update_appointment",
|
|
"signature": "update_appointment(appointment_id: int, payload: AppointmentCreate) -> Appointment",
|
|
"docstring": null
|
|
},
|
|
"delete_appointment": {
|
|
"name": "delete_appointment",
|
|
"kind": "function",
|
|
"path": "openapi_first.templates.vet_app.data.delete_appointment",
|
|
"signature": "delete_appointment(appointment_id: int) -> None",
|
|
"docstring": null
|
|
}
|
|
}
|
|
}
|
|
} |