chatopera / deep-qa

Question and Answering Model with TensorFlow
Apache License 2.0
32 stars 7 forks source link

Access Service with RESt API and TEST bot question #2

Open hohosyk opened 7 years ago

hohosyk commented 7 years ago

@Samurais Hello Thank you for the guide!! I tested Access Service with RESt API with POSTMAN, and when body says {"message": "hello"}, then, I got following message as: { "detail": "Invalid username/password." }

questions is that 1) Do I need to log in first at http://127.0.0.1:8000/admin/? I don't know username and password. I tried to find username and password at "db.sqlite3 " and when I entered Username as "admin" and password as "pbkdf2_sha 256$30000$3Nynf4nfaN8w$XNnpLTYHg7pXOyOnvxlomOQOsEkuYQzhkcc074zuRkI=", I failed to log in.

2) I tested POSTMAN as like: (HEADER/BODY)

3) I created folder "rest_framework" at C:\Program Files\Anaconda3\Lib\site-packages\django\contrib\admin\templates\rest_framework and created api.html. But I don't know how to enter my question to bot.

zli2014 commented 7 years ago

hi, I am also concerned about this project recently. I think it is authorized. you can use curl with -H 'Authorization: Basic YWRtaW46cGFzc3dvcmQxMjM=' , this server base on django , it maybe help you --> how-are-permissions-to-access-to-django-rest-api-managed