Using GraphQL Admin API

I’m verifying ACL.When I visit http://localhost:8080/admin through a browser .The following error message will be prompted:

{“errors”:[{“message”:“no query string supplied in request”}]}

I have two questions:
Q1:How to access a page http://localhost:8080/admin for password reset.I refer to this document https://dgraph.io/docs/enterprise-features/access-control-lists/#reset-the-root-password

Q2:When I visit http://localhost:8080/state through a browser

{“errors”:[{“message”:“rpc error: code = PermissionDenied desc = no accessJwt available”,“extensions”:{“code”:“Error”}}]}

What should I do

When using ACL you have always to be logged in. Follow this to log in https://dgraph.io/docs/enterprise-features/access-control-lists/#access-data-using-the-graphql-api

You will get the access JWT(token) to use in all future queries and others.

As the admin endpoint is a GraphQL Server, you should use GraphQL queries in cURL or use Insomnia or Postman or any GraphQL client to access it. And all of them have a field to add the JWT(Token).