OpenPlatform

Changes in API structure from v. 1 to v. 2

Community added

Community service contains endpoints for handling user profiles and user generated content.

Expose images from cms ws (returned url part) (Issue #752 )

The backend (CMS) returning the url (e.g. files/725300/6c87a7b175d886f2107b6195832ce955f18e2c72.jpeg) returns a correct valid url.

status/user expanded (Issue #749 )

status/user expanded with borrower name, email and street address from openUserStatus

Borrower status expanded from

{
  "statusCode": 200,
  "data": {
    "id": "U2VydmljZVByb3ZpZGVy",
    "library": "710100",
    "loans": [

to

{
    "statusCode": 200,
    "data": {
        "id": "U2VydmljZVByb3ZpZGVy",
        "name": "Låners Navn",
        "address": "Låners adresse",
        "postalCode": "4000",
        "mail": "noone@nowhere.com",
        "loans": [],
        "orders": [

Normalization of agencyId and branchId (Issue #743, #769 and #771 )

Agency and branch is’s are normalised to ISIL numbers (DK-999). Prefix “DK-“ will be inserted by default.

Data type changed in

GET /events - Agency ID to fetch content for query integer GET /library - Agency ID to fetch content for query integer GET /news - Agency ID to fetch content for query integer

to Array[string]

/status/user added content in “debt” (Issue #760 )

Fee is a total amount:

"debt": [
            {
                "amount": "20",
                "currency": "DKK",
                "date": "1970-01-01T00:00:00+01:00",
                "title": ""
            }
        ],

Debt strukture is retured even if “amount” is “0”.

Limit in /work and /recommend increased (Issue #706 )

Bump limit raised from 20 to 50. This is the limit found in opensearch.

Consistency on label names (Issue #685 )

Consistency on label names in returned JSON - like “creator”’ and “author”

Author should changed to creator (Issue #633 )

Normalization of date and time to ISO-format (Issue #682 )

Date and time must be returned in ISO 8601 format:

Date=YYYY-MM-DD
Time=YYYY-MM-DDThh:mm:ss Example:
"dueDate": "2016-04-16"
"date": "2015-11-21T00:00:00.000Z"

Bugfixed in v.1, but new/external modules MAY potentially return data and time in other formats