foliolib.folio.api.rtac.Rtac

class foliolib.folio.api.rtac.Rtac(tenant: str, okapi: Optional[foliolib.okapi.okapiClient.OkapiClient] = None)

Bases: foliolib.folio.FolioApi

DEPRECATED Real Time Availability Checker Integration

This module allows 3rd party discovery services to check for FOLIO inventory availability

Parameters
  • tenant (str) – Tenant id

  • okapi (OkapiClient, optional) – Instance of OkapiClient. Defaults to None.

Methods

get_rtac(rtacId)

Retrieve rtac item with given {rtacId}

get_rtac(rtacId: str)

Retrieve rtac item with given {rtacId}

GET /rtac/{rtacId}

Parameters

rtacId (str) –

Returns

See Schema below

Return type

dict

Raises
  • OkapiRequestUnauthorized – Authentication is required

  • OkapiRequestNotFound – Not Found

  • OkapiFatalError – Server Error

  • OkapiRequestError – Bad Request

  • OkapiRequestForbidden – Forbidden

Schema

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "additionalProperties": false,
  "javaType": "org.folio.rest.jaxrs.model.LegacyHoldings",
  "description": "Collection of holdings",
  "properties": {
    "holdings": {
      "description": "Collection of holdings",
      "type": "array",
      "items": {
        "type": "object",
        "$ref": "holding.json"
      }
    }
  },
  "required": [
    "holdings"
  ]
}