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
Jenkins
Jenkinsfile
Jira
jq
jQuery
jsdom
JupyterHub
......
......@@ -464,8 +464,9 @@ User.billable.count
::HistoricalData.max_historical_user_count
```
Using cURL and jq (up to a max 100, see the [pagination docs](../../api/README.md#pagination)):
```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]'
```
......
......@@ -164,7 +164,7 @@ need to add in project A's `.gitlab-ci.yml`:
build_docs:
stage: deploy
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:
- 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