Skip to content

Azure Functions

Robert Brands edited this page Jan 20, 2024 · 8 revisions

The backend is implemented with Azure Functions and Cosmos DB as data layer.

To call one of the functions provided an API key is needed (from Azure Function admin panel). Provide this key as header "x-functions-key". Furthermore access on the application level is checked against a "keyword" that is communicated to the users. This keyword must be provides via header "x-meetup-keyword".

The following functions are implemented (for further documentation see Swagger/Open API above or check the source code):

  • GetVersion: Returns a version string like "2020-07-22".
  • GetClientSettings: Returns the ClientSettings to be used by Blazor client.
  • WriteClientSettings: Writes an updated version of ClientSettings. Requires admin keyword as header x-meetup-keyword
  • CheckKeyword: Checks the given keyword against current user and admin keyword
  • GetServerSettings: Reads the ServerSettings for editing. Requires admin keyword as header x-meetup-keyword
  • WriteServerSettings: Writes an updated version of ServerSettings. Requires admin keyword as header x-meetup-keyword
  • WriteCalendarItem: Writes or updates ("Upsert") an CalendarItem. Requires user keyword as header x-meetup-keyword
  • GetCalendarItems: Gets a list of CalendarItems including "private" ones if corresponding keyword is given. Requires user keyword as header x-meetup-keyword.
  • AddCommentToCalendarItem: Add a comment to the referenced CalendarItem
  • AddParticipantToCalendarItem: Add a participant to the referenced CalendarItem, hence "CheckIn"
  • DeleteCalendarItem
  • ExportTrackingReport: Export a list of participants who shared a ride with the given user. Admin keyword as x-meetup-keyword required.
  • GetAllExtendedCalendarItems: A list of upcoming events including comments and participants. User keyword as x-meetup-keyword required.
  • GetCalendarItem: Returns the referenced CalendarItem. User keyword required as x-meetup-keyword.
  • GetExportLog: Returns a list of export activities. Admin keyword required as x-meetup-keyword
  • GetExtendedCalendarItem: Gets the referenced ExtendedCalendarItem including comments and participants. Admin keyword as x-meetup-keyword required.
  • RemoveCommentFromCalndarItem
  • RemoveParticipantFromCalendarItem

Clone this wiki locally