O'Reilly logo

Django Project Blueprints by Asad Jibran Ahmed

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required