-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Facilities API and Feed Example #311
Comments
Hi @nickevansuk thank you for taking the time to write down this example. I'm struggling to understand how we should use the information contained in the
I reckon I should send a On a different note, Thanks! |
Hi @loalf the detail of how to use the ReserveAction can be found in the Open Booking API spec. Payload details included. The types are defined by schema.org (see bottom of this page https://schema.org/Action for the top of the tree, and note that there are subclasses inside each too). Names are not currently defined. Does that help? Also for context which organisation are you from? |
Thanks @nickevansuk , yes, that helps. I'm working with MyLocalPitch, I reckon we met a few weeks ago in one the monthly meetings. |
@nickevansuk The validator currently doesn't like the suggested FacilityUse object, so some adjustments need to be made to one or both. One thing that has come up is that the validator expects |
@nickevansuk in the validator (e.g. https://validator.openactive.io/?url=https%3A%2F%2Fwww.openactive.io%2Fdata-models%2Fversions%2F2.x%2Fexamples%2Fslot_example_1.json&version=2.0), there are samples of Facility data. In these examples, the kind is In the examples you've given in this proposal, the kinds are Is there a place where |
Moved to https://github.com/openactive/modelling-opportunity-data for historical value |
Opportunity API for facilities
https://example.com/api/facility-uses
GET https://example.com/api/facility-uses?location.geo[radial]=51.5282923438685,-0.206177163090501,30&event.startDate[gte]=2018-07-20T11:00:00Z&event.startDate[lte]=2018-07-27T11:00:00Z&event.remainingUses[gte]=1
https://example.com/api/facility-uses/{id}/individual-facility-uses
GET https://example.com/api/facility-uses/432/individual-facility-uses?event.startDate[gte]=2018-07-20T11:00:00Z&event.startDate[lte]=2018-07-27T11:00:00Z&event.remainingUses[gte]=1
RPDE open data feeds for facilities
In order to support making the above data available as open data, the following RPDE feeds are required:
http://www.example.org/feeds/facility-uses
http://www.example.org/feeds/facility-uses/events
http://www.example.org/feeds/individual-facility-uses
http://www.example.org/feeds/individual-facility-uses/events
Note these feeds separate the infrequently-changing facilityUse and individualFacilityUse objects, from the frequently changing slot objects.
Also note that items from these feeds can be presented as a single feed, if possible based on the underlying implementation.
http://www.example.org/feeds/facility-uses
http://www.example.org/feeds/facility-uses/events
http://www.example.org/feeds/individual-facility-uses
http://www.example.org/feeds/individual-facility-uses/events
The text was updated successfully, but these errors were encountered: