Building a REST API in Python
The restaurant_menu_items trigger you created in the previous exercise returns Azure's default placeholder message. DataCamp Diner now needs the trigger to return real menu data so their mobile app can render it.
In this exercise, you'll replace the trigger's boilerplate with a Python handler that responds to GET requests with the restaurant menu as JSON — the API surface every downstream exercise builds on.
This exercise is part of the course
Azure API Management
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
Start Exercise