TIP: You can type at any time to perform a new search.
fastapi_endpoint_context
fastapi_endpoint_context · OCA/rest-framework
- Repository
- OCA/rest-framework · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Uncategorized
- Folder size
- 0.03 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/rest-framework
- Last tracking update
- 2026-08-07 08:42:49
- Authors
- Akretion, Odoo Community Association (OCA)
- Maintainers
- Akretion, Odoo Community Association (OCA)
- Committers
- Weblate, Florian Mounier, OCA-git-bot, oca-ci
- Odoo dependencies
- Python dependencies
- a2wsgi>=1.10.6, fastapi>=0.110.0, parse-accept-language, python-multipart, ujson
- System dependencies
- None
- Required by
- None
- Description
This module provides an overridable request context for FastAPI endpoints. It allows to customize the behavior of requests deep in the odoo call stack according to the current request context without having to override routers that may come from external modules. This context contains by default the current endpoint app and id, respectively accessible via `self.env.context.get('fastapi_endpoint_app')` and `self.env.context.get('fastapi_endpoint_id')`.
Code Analysis ⓘ
Views touched (0)
No views found for this module.
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (1)
New fields (0)
No new fields.
Public methods (0)No public methods.
Loading…