This addon is a technical addon used to allows the use of extendable classes in the implementation of your fastapi endpoint handlers. It also allows you to use extendable_pydantic models when defining your endpoint handlers request and response models.
auto_awesome What this module does
AI-generated from the code · Odoo 18.0This technical module lets developers build FastAPI endpoints in Odoo using extendable classes and extendable Pydantic models, so other modules can extend request and response schemas without modifying the original code.
This is a technical addon for developers who build REST APIs inside Odoo with the FastAPI framework. It does not add any screen, menu or button for end users.
What it changes:
- It extends the fastapi.endpoint model so that endpoint handlers can be written as extendable classes, meaning another module can add or override behaviour without editing the original handler.
- It adds a dispatcher that activates the extendable registry while a FastAPI request is being processed, so extendable classes and extendable Pydantic models are resolved correctly at request time.
- It provides a reusable PagedCollection schema with a count and an items list, useful for paginated API responses.
- It depends on the fastapi and extendable modules and on the Python packages pydantic (version 2 or higher) and extendable-pydantic (version 1.2 or higher).
The code also shows a demo router added to the fastapi.endpoint model when the endpoint application is demo, which is used for testing purposes. No business rules, automated actions, emails or scheduled jobs are added by this module.
Depends on
Required by other modules
Models and fields (1)
- fastapi.endpoint · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 3 confirmed, 6 with no information of 9 versions.
Sources · Odoo 14.0
Confirmed on 2026-11-03 in branch 14.0 of OCA/rest-framework.
terminal Installation and usage
No verified informationInstallation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.