summaryrefslogtreecommitdiff
path: root/lib/api/snippets.rb
Commit message (Collapse)AuthorAgeFilesLines
* Adds Rubocop rule for line break after guard clauseJacopo2017-11-161-0/+1
| | | | Adds a rubocop rule (with autocorrect) to ensure line break after guard clauses.
* Conditionally destroy a ressourceRobert Schilling2017-08-281-3/+1
|
* API: Respect the 'If-Unmodified-Since' for delete endpointsRobert Schilling2017-08-281-0/+1
|
* Update grape gemdz-update-grapeDmitriy Zaporozhets2017-07-201-0/+1
| | | | | | | | New version of the gem returns 200 status code on delete with content instead of 204 so we explicitly set status code to keep existing behavior Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* refactor code based on feedbackJames Lopez2017-07-061-2/+1
|
* add user agent details API endpoints to issues and snippetsJames Lopez2017-07-061-0/+17
|
* Support descriptions for snippetsJarka Kadlecova2017-05-311-0/+2
|
* Merge branch 'snippets-finder-visibility' into 'security'Douwe Maan2017-05-101-2/+2
| | | | | | Refactor snippets finder & dont return internal snippets for external users See merge request !2094
* Use string based `visibility` getter & setterToon Claes2017-03-021-2/+2
| | | | | | Add `visibility` & `visibility=` methods to the `Gitlab::VisibilityLevel` module so the `visibility_level` can be get/set with a string value.
* Expose Snippet VisibilityLevel as StringToon Claes2017-03-021-10/+10
|
* Return 204 for delete endpointsRobert Schilling2017-02-281-1/+2
|
* Spam check and reCAPTCHA improvements28093-snippet-and-issue-spam-check-on-editOswaldo Ferreira2017-02-211-1/+6
|
* Check public snippets for spamSean McGivern2017-02-021-1/+1
| | | | | | Apply the same spam checks to public snippets (either personal snippets that are public, or public snippets on public projects) as to issues on public projects.
* API: Endpoint to expose personal snippets as /snippetsGuyzmo2016-12-011-0/+137
Adding the necessary API for the new /snippets Restful resource added with this commit. Added a new Grape class `Snippets`, as well as a `PersonalSnippet` entity. Issue: #20042 Merge-Request: !6373 Signed-off-by: Guyzmo <guyzmo+gitlab+pub@m0g.net>