# Copyright 2020 Coop IT Easy SCRL fs # Robin Keunen # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo.addons.base_rest.controllers import main from odoo.http import route class UserController(main.RestController): _root_path = "/api/" _collection_name = "emc.services" _default_auth = "api_key" @route( _root_path + "/test", methods=["GET"], auth="public", csrf=False, ) def test(self, _service_name, _id=None, **params): return self._process_method( _service_name, "test", _id=_id, params=params )