The version of the PLAS Vendor API that this vendor implements. The provider reads it before sending anything, so it knows which callback and event shapes this vendor expects and can match them.

1 operation
GET /version

Get version

No authentication GetVersion

Example request

cURL

curl -X GET "$PLAS_BASE_URL/version" \
  -H 'Accept: application/json'

JavaScript

const response = await fetch(`${process.env.PLAS_BASE_URL}/version`, {
  method: "GET",
  headers: {
    "Accept": "application/json",
  },
});
const data = await response.json();

Python

import os
import requests

response = requests.get(
    f"{os.environ['PLAS_BASE_URL']}/version",
    headers={
        "Accept": "application/json",
    },
)
data = response.json()
The host and token are environment variables: PLAS_BASE_URL the provider’s base URL.

Responses

200 Success GetVersionResponseBody
Generated from the schema

Example

{
  "version": "0.6.7"
}

Schema

GetVersionResponseBody

  • versionstringrequiredpattern ^\d+.\d+.\d+$

    This is recommended (by the vendor) version of the Open Library API, that is supported by the vendor.