summaryrefslogtreecommitdiff
path: root/lib/api/project_snippets.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix the user-agent detail API endpoint for project snippetsNick Thomas2018-01-171-1/+1
|
* Adds Rubocop rule for line break around conditionals🙈 jacopo beschi 🙉2018-01-111-0/+1
|
* API: Use defined project requirementsrs-api-use-project-requirementsRobert Schilling2017-08-311-1/+1
|
* Conditionally destroy a ressourceRobert Schilling2017-08-281-3/+1
|
* API: Respect the 'If-Unmodified-Since' for delete endpointsRobert Schilling2017-08-281-0/+2
|
* 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>
* add spec and project snippet user agent details endpointJames Lopez2017-07-071-0/+16
|
* Support descriptions for snippetsJarka Kadlecova2017-05-311-0/+2
|
* Merge branch 'snippets-finder-visibility' into 'security'Douwe Maan2017-05-101-2/+1
| | | | | | Refactor snippets finder & dont return internal snippets for external users See merge request !2094
* Add `requirements: { id: %r{[^/]+} }` for all projects and groups namespaced ↵Rémy Coutable2017-03-161-1/+1
| | | | | | API routes Signed-off-by: Rémy Coutable <remy@rymai.me>
* 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 Project's & ProjectSnippet's VisibilityLevel as StringToon Claes2017-03-021-12/+8
| | | | | | | | | | Instead of exposing the VisibilityLevel as Integer, expose it as String `visibility` for Project and ProjectSnippet. Filter queries also accept the `visibility` as String instead of `visibility_level` as Integer. Also remove the `public` boolean.
* Spam check and reCAPTCHA improvements28093-snippet-and-issue-spam-check-on-editOswaldo Ferreira2017-02-211-1/+7
|
* 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.
* Use the pagination helper in the APIuse-pagination-helperRobert Schilling2016-12-041-1/+5
|
* Grapify the projects snippet APIgrapify-project-snippet-apiRobert Schilling2016-11-211-78/+78
|
* Prevent private snippets in public/internal projects from being leaked via APIStan Hu2016-04-251-5/+10
| | | | Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/15580
* Rename abilities to correspond contoller/model action namesrename-abilitiesDmitriy Zaporozhets2015-06-261-3/+3
| | | | | | | | | | | | | | | | | write_ was renamed to create_ modify_ was renamed to update_ So now in update action we have next code def create can?(current_user, :create_issue, @issue) end def update can?(current_user, :update_issue, @issue) end Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* More restricted visibility changesVinnie Okada2015-03-101-4/+4
| | | | Bug fixes and new tests for the restricted visibility changes.
* Enforce restricted visibilities for snippetsVinnie Okada2015-03-081-9/+13
| | | | | | Add new service classes to create and update project and personal snippets. These classes are responsible for enforcing restricted visibility settings for non-admin users.
* Improve error reporting on users APIjubianchi2014-09-161-2/+3
| | | | | | | | * users (#6878, #3526, #4209): Validation error messages are now exposed through 400 responses, 409 response are sent in case of duplicate email or username * MRs (#5335): 409 responses are sent in case of duplicate merge request (source/target branches), 422 responses are sent when submiting MR fo/from unrelated forks * issues * labels * projects
* Dropped expiration date from the snippet APIJeroen van Baarsen2014-01-111-4/+0
|
* Fix snippet raw content being escapedDmitriy Zaporozhets2013-06-061-0/+2
|
* Split Project api on several parts: deploy_keys, hooks, snippets etcDmitriy Zaporozhets2013-06-061-0/+121