Use a tool like mitmproxy to observe ArchivesSpace HTTP traffic
-
Download, install, and run mitmproxy - typically on port 8080.
-
Add this plugin to ArchivesSpace:
AppConfig[:plugins] = ['aspace_mitm_proxy']
- Run the backend, frontend, and / or public devservers with a special environment variable:
ASPACE_PROXY_PORT=8080 ./build/run backend:devserver
- Make a curl request to a search endpoint:
curl -H "X-ArchivesSpace-Session:$ASPACE_SESSION" "$ASPACE_BACKEND_URL/repositories/3/search?q=papers&page=1"
- Inspect the backend's request to Solr in the mitmproxy console: