-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: ensure the document/api collection is in sync with the current …
…work (#334)
- Loading branch information
1 parent
9a28d3c
commit 0dfda30
Showing
5 changed files
with
100 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,13 +27,6 @@ Note: Only users with `Admin` role get list of all keys. Returns `null` for user | |
mutation LoginUser { | ||
login(loginUserInput: { username: "admin", password: "mysecurepassword" }) { | ||
token | ||
user | ||
allKeys { | ||
apiKeyId | ||
apiKey | ||
applicationId | ||
status | ||
} | ||
__typename | ||
} | ||
} | ||
|
@@ -42,9 +35,9 @@ mutation LoginUser { | |
**cURL** | ||
|
||
```sh | ||
curl --location 'http://localhost:3000/graphql' \ | ||
curl --location 'localhost:3000/graphql' \ | ||
--header 'Content-Type: application/json' \ | ||
--data-raw '{"query":"mutation LoginUser {\n login(loginUserInput: { username: \"admin\", password: \"mysecurepassword\" }) {\n token\n user\n allKeys {\n apiKeyId\n apiKey\n applicationId\n status\n }\n __typename\n }\n}","variables":{}}' | ||
--data '{"query":"mutation LoginUser {\n login(loginUserInput: { username: \"admin\", password: \"mysecurepassword\" }) {\n token\n __typename\n }\n}","variables":{}}' | ||
``` | ||
|
||
**Sample response** | ||
|
@@ -53,22 +46,7 @@ curl --location 'http://localhost:3000/graphql' \ | |
{ | ||
"data": { | ||
"login": { | ||
"token": "mysecuretoken", | ||
"user": "admin", | ||
"allKeys": [ | ||
{ | ||
"apiKeyId": 1, | ||
"apiKey": "test-api-key", | ||
"applicationId": 1, | ||
"status": 1 | ||
}, | ||
{ | ||
"apiKeyId": 2, | ||
"apiKey": "test-api-key-2", | ||
"applicationId": 2, | ||
"status": 1 | ||
} | ||
], | ||
"token": "eymysecuretoken", | ||
"__typename": "LoginResponse" | ||
} | ||
} | ||
|
@@ -186,7 +164,7 @@ query { | |
sortBy: "createdOn" | ||
sortOrder: DESC | ||
search: "[email protected]" | ||
filters: [{ field: "channelType", operator: "eq", value: "1" }] | ||
filters: [{ field: "applicationId", operator: "eq", value: "1" }] | ||
} | ||
) { | ||
notifications { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters