Company Roles

The module vocabulary for the editor

Every module a company role may contain, with its pt-PT label AND the rules needed to predict what granting it will actually do.

Pure vocabulary, so the derivation lives in app/permissions/modules.py beside the constants and the gate that reads them — this handler is the HTTP half and nothing else (house rule). See modules.module_catalog for why the implication rules are on the wire rather than re-declared in JavaScript.

[{"key": "modulo.avaliador", "label": "Avaliador de Viaturas",
  "ungateable": false, "implies": ["modulo.viaturas"], "implied_by": []},
 {"key": "modulo.viaturas",  "label": "Viaturas",
  "ungateable": false, "implies": [], "implied_by": ["modulo.avaliador"]},
 {"key": "modulo.suporte",   "label": "Suporte",
  "ungateable": true,  "implies": [], "implied_by": []},
 ...]
get/api/company-roles/catalog

Headers

x-api-tokenstring nullable

Response

Successful Response

{"stackTrail":"paths:/api/company-roles/catalog:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

No recorded changes to this endpoint across all 1 revision of this API.