API middleware to support LTS workflows in FOLIO.
- Docker
If using Docker Desktop, ensure filesystem sharing for macOS or shared drives for Windows is configured properly to support mounting files at the path of your working copy for this repo.
- Docker Compose
- FOLIO user account with necessary permissions
-
Clone this repo
git clone [email protected]:cul-it/setae-api.git cd setae-api
-
Setup environment variables
cp .env.example .env
Replace CHANGEME placeholders in
.env
with appropriate values -
Build the Docker Image
docker-compose build
-
Start the Dev Environment
docker-compose up
Once the dev environment has started, the API should be running at http://localhost.
You can visit the generated API documentation at http://localhost/docs.
docker-compose down
If running in the foreground, simply press
CTRL + C
- Get a shell into your running application container
docker-compose exec api bash
Submit a GET
request to the http://localhost/items/{barcode} using the barcode of a known item in your FOLIO tenant. This will return XML ready to be consumed by SpineOMatic.
Review the SpineOMatic wiki for installation and settings documentation. More specific details on configuring SpineOMatic to use this FOLIO API middleware will be provided here in the near future.
You can request the original, unmodified JSON from FOLIO using the format
parameter:
http://localhost/items/{barcode}?format=json
Refer to the generated API documentation for the /items endpoint for all available parameters