Open Rits1272 opened 3 years ago
Hey, the register and login API isn't working, could you give it a look please
@iharshit009 are you using curl to test the apis? I just checked and APIs are workling fine. Check using these commands in terminal:
For Login: curl -i -H "Content-Type:application/json" -X GET -d '{"username":"USERNAME","password":"PASSWORD"}' http://rits1272.pythonanywhere.com/api/users/login
For Register: curl -i -H "Content-Type:application/json" -X POST -d '{"username":"USERNAME","password":"PASSWORD"}' http://rits1272.pythonanywhere.com/api/users/register
No, but I got it.Thanks
Harshit Jain
On Tue 8 Dec, 2020, 15:09 Ritik Jain, notifications@github.com wrote:
@iharshit009 https://github.com/iharshit009 are you using curl to test the apis?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Rits1272/Memegram/issues/4#issuecomment-740505092, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKQXHFAQXYJHLVFMM4CQ3BDSTXX3XANCNFSM4UOV22GA .
It will be kind of follow up issue for #2. Your task will be to add authentication apis with the login and register screen so that authentication gets completely implemented in our app. The APIs have been already deployed on pythonanywhere.
Register API: http://rits1272.pythonanywhere.com/api/users/register Login API: http://rits1272.pythonanywhere.com/api/users/login
You have to hit these api endpoints with username and password.
The code for the apis have been written in
app.py
. So, you can also check out API code.If you have any doubt, feel free to ping me on slack