6.2.3 RESTful Providers: Responding to Incoming RESTful Requests
Description: Every response from a RESTful endpoint in the Sepasoft Web Services module needs two things: an HTTP status code and content, typically a Python dictionary. Starting with a simple 200 OK response, the example builds up to a downtime events endpoint that reads date parameters from the query, returns MES analysis results, and uses the Ignition gateway logs to troubleshoot a 500 error.
Course: Web Services
Lesson: RESTful Providers
Applies to: MES 3.0, MES 4.0