Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d97ad73c
Commit
d97ad73c
authored
Nov 09, 2016
by
Ryan O'Boyle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos in API doc examples
parent
f9616f15
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
doc/api/build_triggers.md
doc/api/build_triggers.md
+4
-4
doc/api/build_variables.md
doc/api/build_variables.md
+5
-5
No files found.
doc/api/build_triggers.md
View file @
d97ad73c
...
...
@@ -15,7 +15,7 @@ GET /projects/:id/triggers
|
`id`
| integer | yes | The ID of a project |
```
curl --header "PRIVATE
_
TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/triggers"
curl --header "PRIVATE
-
TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/triggers"
```
```
json
...
...
@@ -51,7 +51,7 @@ GET /projects/:id/triggers/:token
|
`token`
| string | yes | The
`token`
of a trigger |
```
curl --header "PRIVATE
_
TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/triggers/7b9148c158980bbd9bcea92c17522d"
curl --header "PRIVATE
-
TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/triggers/7b9148c158980bbd9bcea92c17522d"
```
```
json
...
...
@@ -77,7 +77,7 @@ POST /projects/:id/triggers
|
`id`
| integer | yes | The ID of a project |
```
curl --request POST --header "PRIVATE
_
TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/triggers"
curl --request POST --header "PRIVATE
-
TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/triggers"
```
```
json
...
...
@@ -104,7 +104,7 @@ DELETE /projects/:id/triggers/:token
|
`token`
| string | yes | The
`token`
of a trigger |
```
curl --request DELETE --header "PRIVATE
_
TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/triggers/7b9148c158980bbd9bcea92c17522d"
curl --request DELETE --header "PRIVATE
-
TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/triggers/7b9148c158980bbd9bcea92c17522d"
```
```
json
...
...
doc/api/build_variables.md
View file @
d97ad73c
...
...
@@ -13,7 +13,7 @@ GET /projects/:id/variables
|
`id`
| integer | yes | The ID of a project |
```
curl --header "PRIVATE
_
TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/variables"
curl --header "PRIVATE
-
TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/variables"
```
```
json
...
...
@@ -43,7 +43,7 @@ GET /projects/:id/variables/:key
|
`key`
| string | yes | The
`key`
of a variable |
```
curl --header "PRIVATE
_
TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/variables/TEST_VARIABLE_1"
curl --header "PRIVATE
-
TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/variables/TEST_VARIABLE_1"
```
```
json
...
...
@@ -68,7 +68,7 @@ POST /projects/:id/variables
|
`value`
| string | yes | The
`value`
of a variable |
```
curl --request POST --header "PRIVATE
_
TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/variables" --form "key=NEW_VARIABLE" --form "value=new value"
curl --request POST --header "PRIVATE
-
TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/variables" --form "key=NEW_VARIABLE" --form "value=new value"
```
```
json
...
...
@@ -93,7 +93,7 @@ PUT /projects/:id/variables/:key
|
`value`
| string | yes | The
`value`
of a variable |
```
curl --request PUT --header "PRIVATE
_
TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/variables/NEW_VARIABLE" --form "value=updated value"
curl --request PUT --header "PRIVATE
-
TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/variables/NEW_VARIABLE" --form "value=updated value"
```
```
json
...
...
@@ -117,7 +117,7 @@ DELETE /projects/:id/variables/:key
|
`key`
| string | yes | The
`key`
of a variable |
```
curl --request DELETE --header "PRIVATE
_
TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/variables/VARIABLE_1"
curl --request DELETE --header "PRIVATE
-
TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/variables/VARIABLE_1"
```
```
json
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment