You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
645 B
25 lines
645 B
# Copyright 2020 Coop IT Easy SCRL fs
|
|
# Robin Keunen <robin@coopiteasy.be>
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
|
|
|
|
|
from odoo.http import route
|
|
|
|
from odoo.addons.base_rest.controllers import main
|
|
|
|
|
|
class UserController(main.RestController):
|
|
_root_path = "/api/"
|
|
_collection_name = "emc.services"
|
|
_default_auth = "api_key"
|
|
|
|
@route(
|
|
_root_path + "<string:_service_name>/test",
|
|
methods=["GET"],
|
|
auth="public",
|
|
csrf=False,
|
|
)
|
|
def test(self, _service_name):
|
|
return self._process_method(
|
|
_service_name, "test", _id=None, params=None
|
|
)
|