Commit 5c836c15 authored by Douwe Maan's avatar Douwe Maan

Merge branch 'patch-57' into 'master'

Update API dox to save others from my mistakes

See merge request gitlab-org/gitlab-ce!28368
parents a5f810c9 8e4bc000
...@@ -186,6 +186,8 @@ curl "https://gitlab.example.com/api/v4/projects" ...@@ -186,6 +186,8 @@ curl "https://gitlab.example.com/api/v4/projects"
The API uses JSON to serialize data. You don't need to specify `.json` at the The API uses JSON to serialize data. You don't need to specify `.json` at the
end of an API URL. end of an API URL.
All of the API endpoints that use the `POST`, `PUT` or `PATCH` method support params in the request body, with `Content-Type` `application/x-www-form-urlencoded`, `multipart/form-data` or `application/json`.
## Authentication ## Authentication
Most API requests require authentication, or will only return public data when Most API requests require authentication, or will only return public data when
......
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