Skip to content

navikt/dp-regel-api-arena-adapter

Repository files navigation

Dagpenger Regel API - Arena Adapter

Adapter for Arena mot DigiDag Dagpenger regel API

Starte applikasjonen lokalt

Se Dagpenger docker compose og docker-compose

Kjøre mot testmiljø (preprod, eller dev)

dp-regel-api-arena-adapter er beskyttet med jwt autentisering, hent token med:

Hent systembruker og passord fra fasit DP_TOKEN=$(curl -v --user <systembruker> https://security-token-service.nais.preprod.local/rest/v1/sts/token/\?grant_type\=client_credentials\&scope\=openid | jq -r .access_token) (NB: installer jq hvis du ikke har det: brew install jq elns)

bruk token i request mot APIet:

curl -v -H "Authorization: Bearer $DP_TOKEN" -X POST -H "Content-Type: application/json" https://dp-regel-api-arena-adapter.nais.preprod.local/v1/.... `

Working on Open API specification

Install

  1. Install Node JS.
  2. Clone repo and run npm install in the repo root.

Usage

npm run start

Starts the development server.

Change files in openapi folder

npm run test

To test rules openapi

git commit and git push

To deploy new version of https://navikt.github.io/dp-regel-api-arena-adapter/

Releases

No releases published

Packages

 
 
 

Languages