Endpoint
endpoint · OCA/web-api
-
Security25/25No findings
-
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
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `INSERT INTO ir_logging ( create_date, create_uid, type, dbname, name, level, message, path, line, func ) VALUES ( NOW() at time zone 'UTC', %s, %s, %s, %s, %s, %s, %s, %s, %s )` - re-check the table/column names still match after upgrading. 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
Provide an endpoint framework allowing users to define their own custom endpoint.
Thanks to endpoint mixin the endpoint records are automatically registered as real Odoo routes.
You can easily code what you want in the code snippet.
NOTE: for security reasons any kind of RPC call is blocked on endpoint records.
Dependencies
- Odoo dependencies
- Python dependencies
- PyYAML, jsonschema
- System dependencies
- None
- Required by
- edi_endpoint_oca, endpoint_auth_api_key
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 6
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
endpoint_endpoint_form_view |
endpoint.endpoint.form | endpoint.endpoint | form | Inherits endpoint.endpoint_mixin_form_view |
endpoint_endpoint_search_view |
endpoint.endpoint.search | endpoint.endpoint | search | Inherits endpoint.endpoint_mixin_search_view |
endpoint_endpoint_tree_view |
endpoint.endpoint.list | endpoint.endpoint | list | Inherits endpoint.endpoint_mixin_list_view |
endpoint_mixin_form_view |
endpoint.mixin.form | endpoint.mixin | form | New |
endpoint_mixin_list_view |
endpoint.mixin.list | endpoint.mixin | list | New |
endpoint_mixin_search_view |
endpoint.mixin.search | endpoint.mixin | search | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
No new fields.
Public methods (0)No public methods.
-
code_snippetText -
code_snippet_docsTextcompute='_compute_code_snippet_docs'default=<expr> -
company_idMany2one → res.companystring='Company' args: 'res.company' -
exec_as_user_idMany2one → res.userscomodel_name='res.users' -
exec_modeSelectionrequired=Trueselection='_selection_exec_mode' -
request_content_schemaTexthelp="Optional schema validated against the parsed request body. The accepted format depends on 'Request content type':\n - application/json: JSON Schema (Draft 2020-12), as YAML or JSON\n - application/xml, text/xml: XML Schema (XSD)\nIf empty, no validation runs." -
request_content_schema_applicableBooleancompute='_compute_request_content_schema_applicable'
-
copy_data(self, default=None)
Loading…
Loading…
Loading…
Loading…