From 8e4bc00090cab075730491cb78956009ea48e152 Mon Sep 17 00:00:00 2001 From: Sarah Groff Hennigh-Palermo Date: Thu, 16 May 2019 15:51:36 +0000 Subject: [PATCH] Update API dox to save others from my mistakes --- doc/api/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/api/README.md b/doc/api/README.md index 7ec7955c596..439f58c1253 100644 --- a/doc/api/README.md +++ b/doc/api/README.md @@ -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 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 Most API requests require authentication, or will only return public data when