Import as cURL

POST https://api.github.com/graphql

  1. 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 [Import and paste the cURL as raw text](https://i.imgur.com/7q2O5Rf.png)
  2. 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.
  3. 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.
  4. 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

KeyDatatypeRequiredDescription
Content-Typestring
AuthorizationstringRequest 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"}}}