Endpoint route handler
endpoint_route_handler · OCA/web-api
Health
92/100
good
-
Security22/251 minor finding
-
Activity25/25Last human commit 3 months ago
-
Required by20/252 modules depend on it
-
Maturity25/25In 5 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
Required by
2
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.12 MB
Module directory on disk
Code analysis
2 migration notes
4 models
0 views
0 HTTP endpoints
Migration considerations
EndpointRegistry— Class 'EndpointRegistry' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · source- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `CREATE TRIGGER trigger_endpoint_route_set_timestamp BEFORE UPDATE ON %(table)s FOR EACH ROW EXECUTE PROCEDURE endpoint_route_set_timestamp();` - re-check the table/column names still match after upgrading. (2 occurrences in this file) migration-raw-sql-write · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Technical module that provides a base handler for adding and removing controller routes on the fly.
Can be used as a mixin or as a tool.
Dependencies
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 4
New fields (11)
-
auth_typeSelectiondefault='user_endpoint'selection='_selection_auth_type' -
corsChardefault='*'help='Comma-separated list of allowed origins' -
csrfBooleandefault=False -
endpoint_hashCharcompute='_compute_endpoint_hash'help='Identify the route with its main params' -
nameCharrequired=True -
readonlyBooleandefault=False -
request_content_typeSelectionselection='_selection_request_content_type' -
request_methodSelectionrequired=Trueselection='_selection_request_method' -
routeCharcompute='_compute_route'copy=Falseindex=Trueinverse='_inverse_route'precompute=Truereadonly=Falserequired=Truestore=True -
route_groupCharhelp='Use this to classify routes together' -
route_typeSelectiondefault='http'selection='_selection_route_type'
No public methods.
New fields (0)
No new fields.
Public methods (1)-
new(self, values=None, origin=None, ref=None)@api.model
New fields (2)
-
activeBooleandefault=True -
registry_syncBooleancopy=Falsedefault=Falsehelp='ON: the record has been modified and registry was not notified.\nNo change will be active until this flag is set to false via proper action.\n\nOFF: record in line with the registry, nothing to do.'
-
unlink(self) -
write(self, vals)
New fields (0)
No new fields.
Public methods (1)-
routing_map(self, key=None)@tools.ormcache('key', 'self._endpoint_route_last_version()', cache='routing')
Loading…
Loading…
Loading…
Loading…
Loading…