AFI Explorer API
Aggregates e-publishing.af.mil publication objects into a single JSON object array using Cloudflare Workers.
API Usage
You can access the live API by visiting api.afiexplorer.com
Routes
/
the default path serves data for all publications
Development
Go to the api.afiexplorer.com GitHub repo to clone a copy of the worker script. The use of miniflare for local development is required. After installing the module globally with npm, run the following command to start the worker:
miniflare worker.js -k STATIC_PUBS
To trigger the scheduled event that builds out the static KV data store, make an HTTP request to the miniflare engine:
curl "http://localhost:8787/.mf/scheduled"