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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
f4e7bc83
Commit
f4e7bc83
authored
Mar 23, 2017
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove highlighting language from GET codeblocks
[ci skip]
parent
b5cc9808
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
doc/api/README.md
doc/api/README.md
+6
-6
No files found.
doc/api/README.md
View file @
f4e7bc83
...
...
@@ -168,7 +168,7 @@ returned with status code `404`:
Example of a valid API call and a request using cURL with sudo request,
providing a username:
```
shell
```
GET /projects?private_token=9koXpg98eAheJpvBs5tK&sudo=username
```
...
...
@@ -179,7 +179,7 @@ curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" --header "SUDO: username" "h
Example of a valid API call and a request using cURL with sudo request,
providing an ID:
```
shell
```
GET /projects?private_token=9koXpg98eAheJpvBs5tK&sudo=23
```
...
...
@@ -194,8 +194,8 @@ is defined in [`lib/api.rb`][lib-api-url].
Example of a valid API request:
```
shell
GET
https://gitlab.example.com/api/v4
/projects?private_token
=
9koXpg98eAheJpvBs5tK
```
GET /projects?private_token=9koXpg98eAheJpvBs5tK
```
Example of a valid API request using cURL and authentication via header:
...
...
@@ -317,14 +317,14 @@ For example, an issue might have `id: 46` and `iid: 5`.
That means that if you want to get an issue via the API you should use the
`id`
:
```
bash
```
GET /projects/42/issues/:id
```
On the other hand, if you want to create a link to a web page you should use
the
`iid`
:
```
bash
```
GET /projects/42/issues/:iid
```
...
...
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