using doc-forge (#1)
Reviewed-on: #1 Co-authored-by: Vishesh 'ironeagle' Bangotra <aetoskia@gmail.com> Co-committed-by: Vishesh 'ironeagle' Bangotra <aetoskia@gmail.com>
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"module": "openapi_first.templates.crud_app.routes",
|
||||
"content": {
|
||||
"path": "openapi_first.templates.crud_app.routes",
|
||||
"docstring": "CRUD route handlers bound via OpenAPI operationId.\n\nThese handlers explicitly control HTTP status codes to ensure\nruntime behavior matches the OpenAPI contract.\n\nThis module defines OpenAPI-bound operation handlers for a simple CRUD\nservice. Functions in this module are bound to HTTP routes exclusively\nvia OpenAPI ``operationId`` values.\n\nHandlers explicitly control HTTP response status codes to ensure runtime\nbehavior matches the OpenAPI contract. Error conditions are translated\ninto explicit HTTP responses rather than relying on implicit framework\nbehavior.\n\nNo routing decorators or path definitions appear in this module. All\nrouting, HTTP methods, and schemas are defined in the OpenAPI\nspecification.",
|
||||
"objects": {
|
||||
"Response": {
|
||||
"name": "Response",
|
||||
"kind": "alias",
|
||||
"path": "openapi_first.templates.crud_app.routes.Response",
|
||||
"signature": "<bound method Alias.signature of Alias('Response', 'fastapi.Response')>",
|
||||
"docstring": null
|
||||
},
|
||||
"HTTPException": {
|
||||
"name": "HTTPException",
|
||||
"kind": "alias",
|
||||
"path": "openapi_first.templates.crud_app.routes.HTTPException",
|
||||
"signature": "<bound method Alias.signature of Alias('HTTPException', 'fastapi.HTTPException')>",
|
||||
"docstring": null
|
||||
},
|
||||
"list_items": {
|
||||
"name": "list_items",
|
||||
"kind": "function",
|
||||
"path": "openapi_first.templates.crud_app.routes.list_items",
|
||||
"signature": "<bound method Function.signature of Function('list_items', 32, 44)>",
|
||||
"docstring": "List all items.\n\nImplements the OpenAPI operation identified by\n``operationId: list_items``.\n\nReturns\n-------\nlist[dict]\n A list of item representations."
|
||||
},
|
||||
"get_item": {
|
||||
"name": "get_item",
|
||||
"kind": "function",
|
||||
"path": "openapi_first.templates.crud_app.routes.get_item",
|
||||
"signature": "<bound method Function.signature of Function('get_item', 47, 72)>",
|
||||
"docstring": "Retrieve a single item by ID.\n\nImplements the OpenAPI operation identified by\n``operationId: get_item``.\n\nParameters\n----------\nitem_id : int\n Identifier of the item to retrieve.\n\nReturns\n-------\ndict\n The requested item.\n\nRaises\n------\nHTTPException\n 404 if the item does not exist."
|
||||
},
|
||||
"create_item": {
|
||||
"name": "create_item",
|
||||
"kind": "function",
|
||||
"path": "openapi_first.templates.crud_app.routes.create_item",
|
||||
"signature": "<bound method Function.signature of Function('create_item', 75, 96)>",
|
||||
"docstring": "Create a new item.\n\nImplements the OpenAPI operation identified by\n``operationId: create_item``.\n\nParameters\n----------\npayload : dict\n Item attributes excluding the ``id`` field.\nresponse : fastapi.Response\n Response object used to set the HTTP status code.\n\nReturns\n-------\ndict\n The newly created item."
|
||||
},
|
||||
"update_item": {
|
||||
"name": "update_item",
|
||||
"kind": "function",
|
||||
"path": "openapi_first.templates.crud_app.routes.update_item",
|
||||
"signature": "<bound method Function.signature of Function('update_item', 99, 126)>",
|
||||
"docstring": "Update an existing item.\n\nImplements the OpenAPI operation identified by\n``operationId: update_item``.\n\nParameters\n----------\nitem_id : int\n Identifier of the item to update.\npayload : dict\n Item attributes excluding the ``id`` field.\n\nReturns\n-------\ndict\n The updated item.\n\nRaises\n------\nHTTPException\n 404 if the item does not exist."
|
||||
},
|
||||
"delete_item": {
|
||||
"name": "delete_item",
|
||||
"kind": "function",
|
||||
"path": "openapi_first.templates.crud_app.routes.delete_item",
|
||||
"signature": "<bound method Function.signature of Function('delete_item', 129, 158)>",
|
||||
"docstring": "Delete an existing item.\n\nImplements the OpenAPI operation identified by\n``operationId: delete_item``.\n\nParameters\n----------\nitem_id : int\n Identifier of the item to delete.\nresponse : fastapi.Response\n Response object used to set the HTTP status code.\n\nReturns\n-------\nNone\n No content.\n\nRaises\n------\nHTTPException\n 404 if the item does not exist."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user