Sync library Saturday hours from MySQL

Recipe ToolsDatabaseMarketing

What it does

When someone calls the Get fe_lib_saturday_hours endpoint, this automation queries the fe_lib_saturday_hours table in MySQL and returns the results. If an error occurs, the response is returned without retry so the caller knows what happened.

Who it's for

Operations teams who need to retrieve library Saturday hours from MySQL via API.

How teams use this

Display library hours on a website

Call this endpoint from a public website to show visitors the Saturday hours for each library location. The data updates whenever the MySQL table changes.

Integrate hours into a mobile app

Use this endpoint in a mobile application so users can check Saturday hours on the go. The same query logic works for any client that needs the data.

Add holiday exceptions to the response

Extend the query to include a condition that filters out Saturdays when the library is closed for holidays. Only return operating hours for regular business days.

How it works

  1. Receive the API call. Someone calls the Get fe_lib_saturday_hours endpoint in real time to request library Saturday hours data.
  2. Query Saturday hours from MySQL. Select rows from the fe_lib_saturday_hours table in MySQL to retrieve the current Saturday schedule for all library locations.
  3. Return the results. Send the Saturday hours data back to the caller. If an error occurs during the query, return the error response without retrying.