Versions Compared

Key

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

...

Test -vs- productions

  • Login/auth for prod → Remove .stage

  • Audience for prod → Remove .stage

  • API-endpoints for prod → Remove .stage

Endpoints for Retailers

  • Onix Export ONIX

    • Use new token i Authorization-header, with given audience

    • Change base URL

Endpoints

Each API has gotten a new URL. Here you can see a overview of the new URLs as well as the corresponding audience to use.

Auth
Audience

API

Method

New endpoint URL (test-enviroment)

metadata

(warning) ONIX (warning)

GET

https://api.stage.bokbasen.io/metadata/export/onix/v1

(warning) Objects (warning)

GET

(Object Export - TBA)

dds

Inventory

GET

https://api.stage.bokbasen.io/dds/inventory/v2

https://api.stage.bokbasen.io/dds/inventory/v2/{isbn}

Orders and reporting

POST

https://api.stage.bokbasen.io/dds/order/v1

Bokbasen distributes binaries to the end user

POST

https://api.stage.bokbasen.io/dds/order/subscription/v1

Content download

GET

GET

GET

GET

https://api.stage.bokbasen.io/dds/content/v1/{fulfillmentId}

https://api.stage.bokbasen.io/dds/content/v1/raw/{resourceId}

https://api.stage.bokbasen.io/dds/content/v1/library/{resourceId}

https://api.stage.bokbasen.io/dds/content/v1/{resourceId}/sample

bokskya

Bookshelf / OPDS

GET

https://api.stage.bokbasen.io/bokskya/content/v1/{id}

IDM

POST

GET

GET

https://api.stage.bokbasen.io/bokskya/account/v1

https://api.stage.bokbasen.io/bokskya/account/v1/{id}

https://api.stage.bokbasen.io/bokskya/account/v1/{email}

orders

Send Order

POST

https://api.stage.bokbasen.io/orders/v1

Update order line

POST

https://api.stage.bokbasen.io/orders/v1/{id}/update

Update order line status

POST

https://api.stage.bokbasen.io/orders/v1/{id}/lines/{lineId}

Get Order data

GET

GET

GET

https://api.stage.bokbasen.io/orders/v1

https://api.stage.bokbasen.io/orders/v1/{id}

https://api.stage.bokbasen.io/orders/v1/{id}/editx

Endpoints for Publishers & Distributors

...

Each API has gotten a new URL. Here you can see a overview of the new URLs as well as the corresponding audience to use.

Auth
Audience

API

Method Test-URL

New endpoint URL (test-environment)

metadata

(warning) Import Service (warning)

POST

POST

GET

GET

https://api.stage.bokbasen.io/metadata/import/onix/v1

(Object Import - TBA)

https://api.stage.bokbasen.io/metadata/import/onix/v1/status/{id}

https://api.stage.bokbasen.io/metadata/import/onix/v1/status/all

orders

Get Order data

GET

GET

GET

https://api.stage.bokbasen.io/orders/v1

https://api.stage.bokbasen.io/orders/v1/{id}

https://api.stage.bokbasen.io/orders/v1/{id}/editx

...