Import as cURL
POST https://api.github.com/graphql
- Import a cURL command: See below for an example cURL request representing a GraphQL query. Copy this request (or another one) to your clipboard. Then, click the Import button in the top left of the Qodex app. Under the Paste Raw Text tab, paste your cURL command and confirm Import.
curl -i -H 'Content-Type: application/json' -H "Authorization: Bearer {{myGithubAccessToken}}" -X POST -d '{"query": "query {repository(owner: \"loopDelicious\", name: \"cat-kube-stateless\") {description}}"}' https://api.github.com/graphql
- Update the repository owner (
\"loopDelicious\"
) with your own GitHub username (\"yourName\"
) under the Body tab. Remember to properly escape the double quotes so it can be interpreted as JSON, and leave your\
's' in place. - Update the repository name (
\"cat-kube-stateless\"
) with your own GitHub repo (\"yourRepo\"
) under the Body tab. Again, remember to properly escape the double quotes. - Update
{{myGitHubAccessToken}}
with your own token under the Headers tab, or use an environment to plug in the variable value. You can request your personal access token here: https://github.com/settings/tokens
Request Body
{"query"=>"query {repository(owner: \"loopDelicious\", name: \"cat-kube-stateless\") {description}}"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Authorization | string | Request your personal access token here: https://github.com/settings/tokens |
RESPONSES
status: OK
{"data":{"repository":{"description":"🐱 URL shortener using cat verbs, cat adjectives, and cat emojis"}}}