You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/api/README.md
+4-7
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,18 @@
1
1
# Gitlab API
2
2
3
-
All API requests require authentication. You need to pass `private_token` parameter to authenticate.
3
+
All API requests require authentication. You need to pass a `private_token` parameter to authenticate. You can find or reset your private token in your profile.
4
4
5
-
To get or reset your token visit your profile.
6
-
7
-
If no or invalid `private_token` provided error message will be returned with status code 401:
5
+
If no, or an invalid, `private_token` is provided then an error message will be returned with status code 401:
8
6
9
7
```json
10
8
{
11
9
"message": "401 Unauthorized"
12
10
}
13
11
```
14
12
15
-
API requests should be prefixed with `api` and the API version.
16
-
API version is equal to Gitlab major version number and defined in `lib/api.rb`.
13
+
API requests should be prefixed with `api` and the API version. The API version is equal to the Gitlab major version number, which is defined in `lib/api.rb`.
17
14
18
-
Example of valid API request:
15
+
Example of a valid API request:
19
16
20
17
```
21
18
GET http://example.com/api/v2/projects?private_token=QVy1PB7sTxfy4pqfZM1U
0 commit comments