When there's a new or updated Facility in Kiesvoorjezorg, they have to send a POST request to api.gastvrijezorg.nl/api/v1/triggers. In the parameters we expect a code, id of the resource and your source identifier ('kvz') for example. Code 10 is a new Facility, code 20 is an update.
CODES = {
"10" => "New",
"20" => "Update",
"30" => "Delete" #Not implemented yet
}
You also have to append your key/secret combination that was given to you, they can be sent as query parameters.
So the url looks like this
http://acceptatie-api.gastvrijezorg.nl/api/v1/triggers?secret=yoursecret
and the params like this
{
id: 203984,
code: "20",
source: "kvz"
}
If all went well a job will be enqueued and you'll get a JSON message back stating that.
We also let you see into our care facilities,
http://acceptatie-api.gastvrijezorg.nl/api/v1/care_facilities/10099?secret=yoursecret
Will generate JSON with the care facility you requested. With that we can deliver the same service to you, if you open up an endpoint where we can push a new/updated care facility, you can call our API subsequently and update your data. This way we're always in sync.