Accepting data from remote systems
Now that users can see the status of their infrastructure and manage alerts, it's time to move on to the next step: getting data from real sources instead of using Django management commands to input sample data.
To do so, we will create an API endpoint that accepts data from remote systems. An API endpoint is just a fancy name for a Django view that doesn't have a template to render. The response from an API endpoint is typically either just a 200 OK status or a JSON response. API endpoints are not meant to be used by human users. Instead, they are meant to be used by different software systems to connect together and share information.
The API endpoint that we need to create will be a simple view that accepts ...
Get Django Project Blueprints now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.