a FAIR Data Point backed by static content
See the documentation.
You can trigger an FDP index to crawl your FDP with an HTTP POST with either a JSON payload or a URL-encoded (like from an HTML form) payload.
Specifically, to ask an FDP index FDP_INDEX
to crawl some FDP starting at START
, the unix utility curl
can send a message à la:
This requires a JSON payload with a single element: clientUrl
.
curl -X POST -d '{"clinentUrl": "START"}' -H 'content-type: application/json' FDP_INDEX
For instance, pinging an FDP index running on localhost, you could use curl to trigger indexing of https://fhir-smoker.fdpcloud.org/index
:
curl -X POST -d '{"clientUrl": "https://fhir-smoker.fdpcloud.org/index"}' -H 'content-type: application/json' http://localhost:8080/
It's a little simpler to use the x-form-urlencoded payload, not because it rolls off the tongue but because it's a default behavior in curl so the -H 'content-type: application/x-form-urlencoded'
isn't required.
curl -X POST -d 'clientUrl=START' FDP_INDEX
For instance, pinging an FDP index running on localhost, you could use curl to trigger indexing of https://fhir-smoker.fdpcloud.org/index
:
curl -X POST -d "clientUrl=https://fhir-smoker.fdpcloud.org/index" http://localhost:8080/
A Web browser submitting a CGI Web form will also send application/x-form-urlencoded
so you can use a simple web form like: