Repository
OCA/web-api · module folder · Try on Runboat
Module version
1.2.0
Category
Uncategorized
Folder size
0.11 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/web-api
Last tracking update
2026-08-07 09:06:33
Authors
Camptocamp, Odoo Community Association (OCA)
Maintainers
Camptocamp, Odoo Community Association (OCA)
Committers
Aungkokolin1997, Iván Todorovich, Weblate, OCA-git-bot, Raf Ven, oca-ci
Odoo dependencies
odoo/odoo:
Python dependencies
None
System dependencies
None
Required by
endpoint, fastapi
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.

Code Analysis

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_type Selection
    default='user_endpoint' selection='_selection_auth_type'
  • cors Char
    default='*' help='Comma-separated list of allowed origins'
  • csrf Boolean
    default=False
  • endpoint_hash Char
    compute='_compute_endpoint_hash' help='Identify the route with its main params'
  • name Char
    required=True
  • readonly Boolean
    default=False
  • request_content_type Selection
    selection='_selection_request_content_type'
  • request_method Selection
    required=True selection='_selection_request_method'
  • route Char
    compute='_compute_route' copy=False index=True inverse='_inverse_route' readonly=False required=True store=True
  • route_group Char
    help='Use this to classify routes together'
  • route_type Selection
    default='http' selection='_selection_route_type'
Public methods (0)

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)
  • active Boolean
    default=True
  • registry_sync Boolean
    copy=False default=False help='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.'
Public methods (2)
  • 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…