The Open Booking SDK for .NET provides components that aid the implementation of the OpenActive specifications, including the Open Booking API.
A readme is available within the OpenActive.Server.NET
library project.
Further documentation, including a step-by-step tutorial, can be found at https://tutorials.openactive.io/open-booking-sdk/.
BookingSystem.AspNetCore
provides an example use of the OpenActive.Server.NET library, as a fully standards compliant reference implementation of the OpenActive specifications, including the Open Booking API.
This is designed to have its code copied-and-pasted to provide a quick working starting point for any implementation.
OpenActive.FakeDatabase.NET
is an in-memory database that is used by BookingSystem.AspNetCore for illustration purposes. It can be added as a dependency to your project during the initial stages of implementation, to get a conformant test implementation as a starting position.
Env vars to use when running OpenActive.FakeDatabase.NET:
SQLITE_DB_PATH
: (optional) The path to the SQLite database file. If not provided, a temporary file will be created. Be sure to provide this if you want to persist data between runs.PERSIST_PREVIOUS_DATABASE
: (optional - defaultfalse
) If set tofalse
, the database will be recreated from scratch with each run. If set totrue
, and the database file already has data in it, this data will be preserved.PERIODICALLY_REFRESH_DATA
: (optional - defaultfalse
) If set totrue
, the database will be periodically refreshed, deleting past data and replacing it with future data.