From 4464c22d6d23d893494682d309aec3fb31c11ae3 Mon Sep 17 00:00:00 2001 From: Jarka Kadlecova Date: Wed, 3 May 2017 17:26:49 +0200 Subject: Support descriptions for snippets --- doc/api/project_snippets.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'doc/api/project_snippets.md') diff --git a/doc/api/project_snippets.md b/doc/api/project_snippets.md index ff379473961..80c4b5f1c34 100644 --- a/doc/api/project_snippets.md +++ b/doc/api/project_snippets.md @@ -43,6 +43,7 @@ Parameters: "id": 1, "title": "test", "file_name": "add.rb", + "description": "Ruby test snippet", "author": { "id": 1, "username": "john_smith", @@ -70,8 +71,9 @@ Parameters: - `id` (required) - The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) owned by the authenticated user - `title` (required) - The title of a snippet - `file_name` (required) - The name of a snippet file +- `description` (optional) - The description of a snippet - `code` (required) - The content of a snippet -- `visibility` (required) - The snippet's visibility +- `visibility` (optional) - The snippet's visibility ## Update snippet @@ -87,6 +89,7 @@ Parameters: - `snippet_id` (required) - The ID of a project's snippet - `title` (optional) - The title of a snippet - `file_name` (optional) - The name of a snippet file +- `description` (optional) - The description of a snippet - `code` (optional) - The content of a snippet - `visibility` (optional) - The snippet's visibility -- cgit v1.2.1 From 2e311d9d1aac58bbd9c7d6c97c7cbcccf2715347 Mon Sep 17 00:00:00 2001 From: Jarka Kadlecova Date: Mon, 29 May 2017 09:54:35 +0200 Subject: Support uploads for newly created personal snippets --- doc/api/project_snippets.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/api/project_snippets.md') diff --git a/doc/api/project_snippets.md b/doc/api/project_snippets.md index 80c4b5f1c34..92491de4daa 100644 --- a/doc/api/project_snippets.md +++ b/doc/api/project_snippets.md @@ -73,7 +73,7 @@ Parameters: - `file_name` (required) - The name of a snippet file - `description` (optional) - The description of a snippet - `code` (required) - The content of a snippet -- `visibility` (optional) - The snippet's visibility +- `visibility` (required) - The snippet's visibility ## Update snippet -- cgit v1.2.1