fastapi_endpoint_context
fastapi_endpoint_context · OCA/rest-framework
-
Security25/25No findings
-
Activity20/25Last human commit 10 months ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 16.0
Heuristic over the facts below, not an audit · How it's computed
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').
Dependencies
- Odoo dependencies
- Python dependencies
- a2wsgi>=1.10.6, fastapi, fastapi-openapi-overrides, parse-accept-language, python-multipart, ujson
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 0
No views found for this module.
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 1
No new fields.
Public methods (0)No public methods.
Loading…