Tag for this service. Defaults to portalen-links
Not in use... yet. Defaults to http://portalen.links.no
Use this to run the service in isolated mode.
HOST for the service in isolated mode. Defaults to localhost
PORT for the service in isolated mode. Defaults to 8000
Returns a list if a users links based on roles, groups.
seneca.act({cmd: 'collect-links', type:'user', user:user, roles:[roles]}, (error, data) => {})
curl -d '{"cmd": "collect-links", "type":"user", "user":"gasg", "roles": ["alle", "administrasjonen"]}' -v http://localhost:8000/act
Returns
[
{
title: "Arbeidsrom",
description: "Område for samarbeid og dokumentdeling",
system: "Sharepoint",
url: "https://rom.t-fk.no/Arbeidsrom/Sider/default.aspx",
icon: "work"
},
{
title: "Prosjektveiviseren",
description: "Rom for prosjektstyring",
system: "Sharepoint",
url: "https://rom.t-fk.no/sites/Prosjektveiviseren/SitePages/Portefolje.aspx",
icon: "folder"
},
{
title: "Kontaktinformasjon",
description: "Kontaktinformasjon til Telemark fylkeskommune",
system: "Sharepoint",
url: "https://rom.t-fk.no/informasjon/kontaktinformasjon/Sider/default.aspx",
icon: "contact_phone"
},
{
title: "Kontaktinformasjon skoler",
description: "Kontaktinformasjon til skolene i Telemark fylkeskommune",
system: "Sharepoint",
url: "https://rom.t-fk.no/informasjon/kontaktinformasjon/Sider/Skoler.aspx",
icon: "school"
},
...
...
This microservice does not emit any messages
Build the image
$ docker build -t portalen-links .
Start
$ docker run -d --net host --name portalen-links portalen-links
From hub.docker.com
$ docker run -d --net host --name portalen-links telemark/portalen-links
Call the service
$ curl -d '{"cmd":"collect-links", "type": "user", "roles": ["administrasjonen", "skole", "tannhelse"]}' -v http://192.168.99.100:8000/act