Life is about facing new challenges - Kostya Tszyu
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!
Building something is the best way to learn a new technology. We hope you find a longtime need for which DRF is a good fit. If you lack inspiration though here are some ideas:
Some time ago we wrote an article / app: Simple API Part 2 - Building a Deep Work Logger with Flask, Slack and Google Docs. What if you use this concept with DRF instead of Google Docs?
Actually the Django app ideas we gave you for last week's Django challenge could be used to build APIs as well.
Again, if you have better ideas or needs go for it! The goal is to build something using Django REST Framework. Surprise us and the community in your PR submissions :)
The quickstart guide is the fastest way to get up and running, and building APIs with REST framework.
Real Python has great coverage on the topic:
Some nice tutorials on Medium:
One more tutorial that just came out: Building a Web App From the Ground Up: Django Rest Framework API Development
Extra background: Talk Python had creator Tom Christie recently on: Episode #125: Django REST framework and a new API star is born
Take notice: the coolest working apps get a place under the #100DaysOfDjango project on our projects page!
This doc also provides you with instructions how you can submit your code to our community branch via a Pull Request (PR). We will feature your PRs in our start-of-the-week challenge review (previous editions).
Last but not least: there is no best solution, only learning more and better Python. Good luck!
Keep Calm and Code in Python!
-- Bob and Julian
Do you want to get 250+ concise and applicable Python tips in an ebook that will cost you less than 10 bucks (future updates included), check it out here.
"The discussions are succinct yet thorough enough to give you a solid grasp of the particular problem. I just wish I would have had this book when I started learning Python." - Daniel H
"Bob and Julian are the masters at aggregating these small snippets of code that can really make certain aspects of coding easier." - Jesse B
"This is now my favourite first Python go-to reference." - Anthony L
"Do you ever go on one of those cooking websites for a recipe and have to scroll for what feels like an eternity to get to the ingredients and the 4 steps the recipe actually takes? This is the opposite of that." - Sergio S