Commit 4e2a458b authored by Amy Qualls's avatar Amy Qualls

Merge branch 'docs-curl-quotes' into 'master'

Fix cURL examples that need double quotes

See merge request gitlab-org/gitlab!49545
parents 36da41da b8085bf6
...@@ -214,6 +214,7 @@ JavaScript ...@@ -214,6 +214,7 @@ JavaScript
Jenkins Jenkins
Jenkinsfile Jenkinsfile
Jira Jira
jq
jQuery jQuery
jsdom jsdom
JupyterHub JupyterHub
......
...@@ -464,8 +464,9 @@ User.billable.count ...@@ -464,8 +464,9 @@ User.billable.count
::HistoricalData.max_historical_user_count ::HistoricalData.max_historical_user_count
``` ```
Using cURL and jq (up to a max 100, see the [pagination docs](../../api/README.md#pagination)):
```shell ```shell
# Using curl and jq (up to a max 100, see pagination docs https://docs.gitlab.com/ee/api/#pagination
curl --silent --header "Private-Token: ********************" "https://gitlab.example.com/api/v4/users?per_page=100&active" | jq --compact-output '.[] | [.id,.name,.username]' curl --silent --header "Private-Token: ********************" "https://gitlab.example.com/api/v4/users?per_page=100&active" | jq --compact-output '.[] | [.id,.name,.username]'
``` ```
......
...@@ -164,7 +164,7 @@ need to add in project A's `.gitlab-ci.yml`: ...@@ -164,7 +164,7 @@ need to add in project A's `.gitlab-ci.yml`:
build_docs: build_docs:
stage: deploy stage: deploy
script: script:
- "curl --request POST --form token=TOKEN --form ref=master https://gitlab.example.com/api/v4/projects/9/trigger/pipeline" - 'curl --request POST --form token=TOKEN --form ref=master "https://gitlab.example.com/api/v4/projects/9/trigger/pipeline"'
only: only:
- tags - tags
``` ```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment