deep-qa icon indicating copy to clipboard operation
deep-qa copied to clipboard

Access Service with RESt API and TEST bot question

Open hohosyk opened this issue 7 years ago • 1 comments

@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.

hohosyk avatar May 23 '17 21:05 hohosyk

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

zli2014 avatar May 24 '17 08:05 zli2014