Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access Service with RESt API and TEST bot question #2

Open
hohosyk opened this issue May 23, 2017 · 1 comment
Open

Access Service with RESt API and TEST bot question #2

hohosyk opened this issue May 23, 2017 · 1 comment

Comments

@hohosyk
Copy link

hohosyk commented May 23, 2017

@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
Copy link

zli2014 commented May 24, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants