Need HTTP endpoint API references

I am developing a Dgraph HTTP client in Rust, but all I found is a simple doc. This doc does not contain all endpoints (like /login I found in dgraph-js-http). Moreover, the response structure is not shown. For I am using a strongly-typed language to write the client, I need a detailed HTTP endpoint API references.

I think this is ACL support. Not sure, can you confirm @dmai?
BTW, most HTTP (Admin) functions will be discontinued. Only endpoints for queries and mutations will remain.

Ok, thx, I get it. Then what about the json structure of queries and mutation’s response? Where can I find all possible response structures?

1 Like

You can query like this

curl -H "Content-Type: application/json" -X POST localhost:8080/query -d '{
  "query": "{ q(func: has(email)) {uid name} }"
}' | jq

Not sure what you asking. There is one possible JSON structure only.

I mean the structure of response, like { “data”: xxxx, “errors”: xxxx}.

Something like this?

Yes, that’s what I mean. Thx