The RESTful API that supports the CovidVault GUI.
https://root_address/account/id
Returns the following account properties
namethe business nameavatarboolean value representing the presence of a logo in the databaseselectAllif a location has a conditions of entry checklist, permits the select all buttonstatementsan array of prompts for the conditions of entry checklist
https://root_address/account/id
Returns the following account properties
namethe business namelogothe stored logo filename (empty string if none available)authContactname of the person authorised to request customer data for contact tracingphonecontact phone number for the authorised contactstreetAddressstreet address of the venuesuburbsuburb / townstatestate / provincepostcodepostal codeemailemail address of the authorised contactselectAllif a location has a conditions of entry checklist, permits the select all buttonstatementsan array of prompts for the conditions of entry checklist
Creates a new venue account.
Accepts the following account properties:
namelogoauthContactphonestreetAddresssuburbstatepostcodeemailData must be entered in formatapplication/json.
https://root_address/account/id
Permits the upload of a logo via the API. Accepts the following account properties:
Data must be entered in format multipart/form-data.
https://root_address/account/id
Deletes the account from the database.
https://root_address/entry/id
Registers a visitor entry at a specified venue. Accepts the following visitor properties:
Data must be entered in format application/json.
Returns the following properties:
idthe unique identifier of the check-in entry
https://root_address/exit/id
Optional registration to check-out a previously entered visitor. Accepts the following visitor properties:
Creates a user sign-on event for authentication. Accepts the following properties:
Returns the following properties:
accountIDthe venue IDsessionIDthe session IDaccessTokenthe private key to allow access to authenticated endpointsaccessExpirythe date and time of access expiryrefreshTokenthe private key to reestablish the session without signinrefreshExpirythe date and time of the refresh token's expiry
https://root_address/session/id
Refreshes the access token. Accepts the following properties:
Returns the following properties:
accountIDthe venue IDsessionIDthe session IDaccessTokenthe private key to allow access to authenticated endpointsaccessExpirythe date and time of access expiryrefreshTokenthe private key to reestablish the session without signinrefreshExpirythe date and time of the refresh token's expiry
https://root_address/session/id
Signs the user out and deletes access tokens from the database.
Returns the following properties:
sessionIDthe session ID
https://root_address/statistics/id
Returns the following anonymised statistics:
byDaythe number of visitors by day of the weekbyHourthe number of visitors by hour of the dayreturnthe percentage (as a number between 0 and 100) of visitors that appear more than once in the databasetodaythe number of visitors recorded today
To access authenticated endpoints, the query must be sent with the Authorization header set to a valid accessToken.
