Skip to content
This repository was archived by the owner on Nov 5, 2020. It is now read-only.

telemark/micro-portalen-roles

Repository files navigation

Build Status js-standard-style

micro-portalen-roles

Mapping of roles for portalen

API

/roles

Returns json with all roles

To filter roles by company, department or roles

GET

?company=<company-name>&department=<department-name>&roles=<role1>|<role2>|<role3>

POST

{
  company: '<company-name>',
  department: '<department-name>',
  roles: [
    'role1',
    'role2',
    'role3'
  ]
}

/companies

Returns json of all companies.

/companies/view

Lists all companies. Renders to html.

/id

Generate id from input.

Great way to check if your id is in roles.json

GET

?input=<input>

POST

{
  input: '<input>'
}

Development

Start the development server

$ npm run dev

Deploy

Run the deploy script

$ npm run deploy

License

MIT