Commit b8085bf6 authored by Marcel Amirault's avatar Marcel Amirault

Fix cURL examples that need double quotes

parent 68fa8cc6
......@@ -212,6 +212,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