Skip to content
Snippets Groups Projects
Commit a534c9b7 authored by Sebastian Ziebell's avatar Sebastian Ziebell
Browse files

A few fixes in documentation to notes, updates infos on status codes

A few fixes in the notes URI pattern (`notes` instead of `:notes`), also updated
the information to status codes. If `body` attribute is missing from a POST request
a status code 400 (Bad request) is returned. This reflects the code changes from
the previous commit.
parent bb24275f
Branches
Tags
No related merge requests found
Loading
@@ -76,7 +76,7 @@ Parameters:
Loading
@@ -76,7 +76,7 @@ Parameters:
Get an issue note. Get an issue note.
   
``` ```
GET /projects/:id/issues/:issue_id/:notes/:note_id GET /projects/:id/issues/:issue_id/notes/:note_id
``` ```
   
Parameters: Parameters:
Loading
@@ -90,7 +90,7 @@ Parameters:
Loading
@@ -90,7 +90,7 @@ Parameters:
Get a snippet note. Get a snippet note.
   
``` ```
GET /projects/:id/issues/:snippet_id/:notes/:note_id GET /projects/:id/issues/:snippet_id/notes/:note_id
``` ```
   
Parameters: Parameters:
Loading
@@ -114,7 +114,7 @@ Parameters:
Loading
@@ -114,7 +114,7 @@ Parameters:
+ `id` (required) - The ID of a project + `id` (required) - The ID of a project
+ `body` (required) - The content of a note + `body` (required) - The content of a note
   
Will return created note with status `201 Created` on success, or `404 Not found` on fail. Will return created note with status `201 Created` on success, `400 Bad Request` if the body attribute is missing or `404 Not found` on fail.
   
   
### New issue note ### New issue note
Loading
@@ -131,7 +131,7 @@ Parameters:
Loading
@@ -131,7 +131,7 @@ Parameters:
+ `issue_id` (required) - The ID of an issue + `issue_id` (required) - The ID of an issue
+ `body` (required) - The content of a note + `body` (required) - The content of a note
   
Will return created note with status `201 Created` on success, or `404 Not found` on fail. Will return created note with status `201 Created` on success, `400 Bad Request` if the body attribute is missing or `404 Not found` on fail.
   
### New snippet note ### New snippet note
   
Loading
@@ -147,4 +147,4 @@ Parameters:
Loading
@@ -147,4 +147,4 @@ Parameters:
+ `snippet_id` (required) - The ID of an snippet + `snippet_id` (required) - The ID of an snippet
+ `body` (required) - The content of a note + `body` (required) - The content of a note
   
Will return created note with status `201 Created` on success, or `404 Not found` on fail. Will return created note with status `201 Created` on success, `400 Bad Request` if the body attribute is missing or `404 Not found` on fail.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment