To test the api and see if you are doing the right thing,
-
method:"POST",
-
type:x-www-form-urlencoded
-
params:
{
query: { hello }
}```
* responce:
```json
{
"data": {
"hello": "world"
}
}```
# Authentification
To get a special key to authorize all your requests,
* method:"POST",
* url: http://192.241.151.182:9001/graph/,
* type:x-www-form-urlencoded
params:
```graphql
{
query: `query getToken($username:String!,$password:String!){
auth(username:$username, password:$password){
hash,
message,
errors{
key,
message
}
}
}`,
variables:{
"username":"[email protected]",
"password":"test"
}
}```
* responce:
```json {
"data": {
"auth": {
"hash": null,
"message": null,
"errors": [
{
"key": "username",
"message": "Username not found"
}
]
}
}
}```