I tried this out to learn API testing on Postman for the first time, thank you so much! I did add the host add [‘*’] part and I had problems with Postman so I downloaded the google chrome
I gave you a dislike for the following reasons: You made an amazing introduction of what an API is, but the ending was lame... once you started to 'coding' you didnt explain why we will need those modules/functions, you just copy/paste them. The song was loud, not like a bit of a deal but it was annoying. You could add a graphic example for the use of those modules, functions calls etc, and this video could have been one of the best (at least for the introduction) related to Django Rest Framework. I wish you could take my comment and redo/improve the video because I think its pretty good but past +5mins it becomes pretty bad.
I m getting this error HTTP 400 Bad Request Allow: OPTIONS, GET Content-Type: application/json Vary: Accept "Expecting value: line 1 column 1 (char 0)"
Can we have the API's for creating the data. Like I have created a page which takes the user input from HTML form using Django Model - Forms say Book Library Management. Just wondering if we can convert this into API format.
I have an python script for some file validation usage and return output as JSON format. I need to convert this script to API call. Please give your suggestion for this one.
Thanks for the video!!! It helped a lot. I have a function in views.py which accepts 3 parameters. How do I send multiple value from Postman request. No matter however I give it shows error: missing 2 required positional argument:'arg2','arg3. Please help.
When I run the first time, I got a page error and also error at postman. Pretty sure it’s because of my folder arrangement. So I decided to do it one more time and yeahh I finally got the output. But there are some obstacle too along the way. Some of the solutions I followed are: 1. putting a comma after ‘MyApp’ in settings.py, 2. In settings.py change DEBUG = false to DEBUG = True and then at allowed host add [‘*’]
@@aliasgarzakir4779 it's pretty straightforward. Just upload your files along with requirements.txt on GitHub. Create an account on heroku and connect to your GitHub.
@@aliasgarzakir4779 check the log. If your build is unsuccessful,you will have to find out what went wrong by looking at the log. Make sure you have mentioned all the modules you're using in requirements.txt file.
PmanFunky . hello.. Sorry for not removing unnecessary imports. If you are testing this in postman, i guess you are calling api as GET method. Please select POST in the dropdown in the postman app while sending request to the API
Those who are getting error like this: "detail": "Method \"GET\" not allowed." In the views.py Replace this :@api_view(["POST"]) with this: @api_view(["POST","GET"]) and it shall work fine. :)