Cannot connect to localhost API from Android app

前端 未结 8 2172
星月不相逢
星月不相逢 2020-12-10 06:47

I am new to Django. I have created an API named http://127.0.0.1:8000/api/update/1/ and it works perfectly in the browser and on the Postman app.

Howev

相关标签:
8条回答
  • 2020-12-10 07:47

    The API isn't working in POSTMAN I tried http://127.0.0.1:8000/api/update/1/ shows an error because it requires some params to be inputted.

    in this case, http://newsapi.org/v1/articles?source=bbc-news&sortBy=top&apiKey=8190df9eb51445228e397e4185311a66 the required params have been provided to the API, ie source, sortBy & apiKey

    0 讨论(0)
  • 2020-12-10 07:47

    In local host You must start the server and also do app development in same system then only it works for you..

    0 讨论(0)
提交回复
热议问题