Building a Python Tips API with Django REST Framework and Deploying it to Digital Ocean

In this article I will show you how to build a simple API for our growing collection of Python tips. First we make a simple Django app, defining the model. Next we use Django REST Framework to make an API supporting common CRUD operations. Then we will test it out using curl, Postman and Django REST’s browser front-end. Lastly we deploy the API to Digital Ocean so we can start using it via our Slack with a Slash Command, which I will cover in the next article. Sounds exciting? You bet it is! Let’s jump straight in!

Code Challenge 34 – Build a Simple API With Django REST Framework

Hi Pythonistas, a new week, a new ‘bite’ of Python programming! We love Django (#100DaysOfDjango) and Web APIs. Django REST framework combines the two. “Now is better than never.” – let’s jump right in and let’s use this week’s code challenge to build a simple API. In this article some ideas what we can build and links to resources to get started. Have fun and don’t forget to share (PR) your work, we can learn a lot from each other. Enjoy!