-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #123 from INRIM/t_12711
[ADD] added anag_tipologie_istanze get rest api
- Loading branch information
Showing
5 changed files
with
35 additions
and
10 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
inrim_controllo_accessi_api/controllers/anag_tipologie_istanze.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from odoo import http | ||
|
||
from .api_controller_inrim import InrimApiController, BadRequest | ||
|
||
class InrimApiAnagTipologieIstanze(InrimApiController): | ||
|
||
@http.route('/api/anag_tipologie_istanze', auth="none", type='http', methods=['GET'], | ||
This comment has been minimized.
Sorry, something went wrong. |
||
csrf=False) | ||
def api_get_ca_anag_tipologie_istanze(self, **params): | ||
self.check_token('ca.anag_tipologie_istanze', 'read') | ||
return self.handle_response( | ||
*self.model.rest_get(params), is_list=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
questi controllers vanno inseriti nel modulo controllo_accessi_inrim_app