If you do a tiny bit of lurking on Django forums, it seems like EVERYBODY is going nuts over learning how to create a RESTful API in Django using Django REST Framework. I’m fastinated by this craze. So, I wanted to start a conversation about why YOU might want to learn how to create a RESTful API.
You might want to pay attention, I have a fun surprise at the end of this post.
So, you crazy people and your new fangled RESTful API technologies, need to understand what you need to know about REST and why it might make sense to use it.
Reasons for creating an API
That awesome Single Page Application looks so cool how it feels like a desktop application. It’s seamless, it’s fast and I want to do that SAME THING!!
Besides creating cool apps, here is why you might want to learn REST and Django REST Framework for that matter.
1. Domain Independence
If you only had a REST API, what would you be able to do with it?
Maybe you want to integrate your web presence into a mobile app. You can use your API to make your app do all the cool things your web app can do, but now you have piece of software people can install into their phones and get all your snazzy widgets quicker and easier than ever!
What if you wanted to create a desktop application (Not sure why you would…) but, you’d be able to send data back to your server directly from your amazing software.
Some people and companies even sell usage for their API. You could potentially charge people to use your API so they can create their own awesome apps.
Literally, the sky is the limit.
2. Programming Language Independence
This falls in line with the above. Think you need to follow the same programming language to get your REST API working in other domains? For example, if you’re using Django to create your REST API, do you need to use Django to work with it? Absolutely not!
You could use any programming language and integrate your API with it.
- Create an Android App using Java
- Create an iOS App using Objective-C or Swift
- Create a Desktop application using Python or C++
- The choice is yours!
3. It scales great!
You can layer as much as you need between client and server. Want a load balancer? Caching Mechanism? Special routing needs?
It’s not difficult to get things working with a REST API.
Just a reminder, don’t forget that if you’re using the REST API for too many things, you’ll definitely have problems with bandwidth and latency issues.
Doesn’t REST Sound Fun?
I hope the above helps you decide if you should be learning Django REST Framework. It’s a lot of fun and you can do SO MUCH with it!
If for nothing else but to put on your resume that you understand how to create RESTful APIs and some experience with Django REST Framework, I’ve created an email course that will walk you through creating an API with Django REST Framework.
You’ll learn how to take that “Polls App” that you created with the Official Django Tutorial and we are going to extend it with a RESTful API.
Then, as a special BONUS lesson, you will learn how to USE the API using AngularJS because, why LEARN to create a RESTful API if you don’t know how to use it? Am I right?!
Sign up below! The first lesson will reach your inbox shortly!!
Need help with Django REST Framework? Django REST Framework documentation a little confusing?
Join me for my FREE Django REST Framework email course:
Django REST Framework Email Course
You'll get 1 lesson everyday for 7 days.
- Request Methods
- Basic Authentication
- JQuery Integration
- AngularJS Integration
Similar PostsI Finished the Django Tutorial...Now What?
How I learned Django in 3 Months
You're a newbie and you're making a HUGE mistake
Why (MOST) Tutorials Suck