#!/bin/sh
# First call: search the collection for "pattanam" and print the JSON response.
# Needs curl 7.76 or later. Set LTS_BASE_URL to call another host.
curl --fail-with-body --silent --show-error \
  --header "Accept: application/json" \
  "${LTS_BASE_URL:-https://layersofthesouth.org}/api/v1/search?q=pattanam&limit=2"
