How to test REST API using Chrome's extension “Advanced Rest Client”

后端 未结 8 1156
我寻月下人不归
我寻月下人不归 2020-12-04 08:28

Following the instructions at the link below, I successfully built a REST API for my Django application: http://django-rest-framework.org/tutorial/quickstart.

I can

8条回答
  •  北荒
    北荒 (楼主)
    2020-12-04 09:14

    From the screenshot I can see that you want to pass "user" and "password" values to the service. You have send the parameter values in the request header part which is wrong. The values are sent in the request body and not in the request header. Also your syntax is wrong. Correct syntax is: {"user":"user_val","password":"password_val"}. Also check what is the the content type. It should match with the content type you have set to your service.

提交回复
热议问题