summaryrefslogtreecommitdiff
path: root/lib/api/snippets.rb
Commit message (Collapse)AuthorAgeFilesLines
* 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>