Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A request will look like this:

Curl request 

Code Block
curl https://ws.di.no/ws/json/auth/v-2/login

...


  -H "Content-Type:application/json"

...


  -d "{\"username\": \"myname\",

...


       \"password\": \"secret\" }"

Request object:

Field

Description

Example

Data type

Count

usernameThe username that was provided by the DI service deskmyNameString1
passwordThe password that was provided by the DI service desksecret!23String1

Response object:

The endpoint replies with a response object in JSON format, containing the following data

Field

Description

Example

Data type

Count

tokenThe JWT token to be used in subsequent requestsaVeryLongStringString1

The security token should be placed in the Authorization header like this:

...