Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Use hostUrl, not apiUrl

Compare
Choose a tag to compare
@taylordowns2000 taylordowns2000 released this 05 May 22:13

Asking for apiUrl in config is misleading, as /api/... is appended to most calls anyway. Instead, we'll use hostUrl.

{
  "configuration": {
    "username": "admin",
    "password": "district",
    "hostUrl": "https://play.dhis2.org/2.31.1"
  },
  "data": {
    "a": 1,
    "b": 2,
  }
}