Blog API with Django Rest Framework 32 of 33 – Django Rest Framework JWT & Curl Tests



Blog API with Django Rest Framework 32 of 33 – Django Rest Framework JWT & Curl Tests

** Blog API with Django Rest Framework ** is a project to build a RESTful API service for the blog we created in Advancing the Blog and Try Django 1.9.

RESTful API services allow our applications to connect with other applications using JSON-formatted data. An strong API can enhance our applications ability to provide value to other services and end users. This type of API is very common in modern web…

16 Comments

  1. hello excellent video, I have a question, if I want to login and register from the users' api and not from the form, what should I do, since when putting the JSONWebTokenAuthentication in settings.py this makes those enpoints(registration and login) protect access

  2. This tutorial have been great for me as it is my first time doing authentication using token. But from what i see here, the token we get here is by posting a existing user into /api/auth/token. I know that is where it generate token. However, instead of testing it manually/hardcoded like using curl command n copy paste the token yourself, how to put it into the userloginserializer ? There is already this code( data["token"] = "Some random token") in the previous video. How to insert the variable token that was generated into that field and use it ?

  3. jw. here I see that the comment views is authenticating just the jwt. what about if I want to return the resources that belong to the user sending the JWT? is this handle by the library or do I have to decoded the JWT myself and get the user so I can get the resources that belong to the specific user?

  4. Hi. First of all thanks a lot for such great content and explaining things in a well planned way.
    I have followed all playlists in this series, i.e Making blog with Django 1.9 , then advancing the blog and then Blog API with rest framework. Now I want to move forward to make use of this API to create Android and iOS native apps. Are there any further tutorials in this series? Also any tutorials to make use of this Django API using AngularJS ?
    Looking forward for the Android and iOS series for the same project.

Leave a Reply

Your email address will not be published.


*