Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-11-29support ordering of project notes in notes apihaseeb
2017-11-21add `#with_metadata` scope to remove a N+1 from the notes' APImicael.bergeron
2017-09-14Create system notes for MR too, improve doc + clean up codeJarka Kadlecova
2017-09-14Support discussion lock in the APIJarka Kadlecova
2017-08-31API: Use defined project requirementsRobert Schilling
2017-08-28Conditionally destroy a ressourceRobert Schilling
2017-08-28API: Respect the 'If-Unmodified-Since' for delete endpointsRobert Schilling
2017-08-08Re-enable SqlInjection and CommandInjectionBrian Neel
2017-07-20Update grape gemDmitriy Zaporozhets
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>
2017-06-21Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon
2017-04-09Remove the User#is_admin? methodblackst0ne
2017-03-27API: Make the /notes endpoint work with noteable iid instead of idToon Claes
In API V4 all endpoints were changed so Merge Requests and Issues should be referred by iid, instead of id. Except the /notes endpoint was forgotten. So change the endpoints from: - /projects/:id/issues/:issue_id/notes - /projects/:id/merge_requests/:merge_request_id/notes To: - /projects/:id/issues/:issue_iid/notes - /projects/:id/merge_requests/:merge_request_iid/notes For Project Snippets nothing changes.
2017-03-16Add `requirements: { id: %r{[^/]+} }` for all projects and groups namespaced ↵Rémy Coutable
API routes Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-02-28Return 204 for delete endpointsRobert Schilling
2017-02-23Revert "Prefer leading style for Style/DotPosition"Douwe Maan
This reverts commit cb10b725c8929b8b4460f89c9d96c773af39ba6b.
2017-02-23Prefer leading style for Style/DotPositionDouwe Maan
2017-02-23Enable Style/ColonMethodCallDouwe Maan
2017-02-23Enable Style/MutableConstantDouwe Maan
2017-02-08Fix inconsistent naming for services that delete thingsdixpac
* Changed name of delete_user_service and worker to destroy * Move and change delete_group_service to Groups::DestroyService * Rename Notes::DeleteService to Notes::DestroyService
2017-01-23Merge branch 'fix-guest-access-posting-to-notes' into 'security' Robert Speicher
Prevent users from creating notes on resources they can't access See https://dev.gitlab.org/gitlab/gitlabhq/merge_requests/2054
2016-12-28Parameter already enforced via grapeRobert Schilling
2016-12-04Use the pagination helper in the APIRobert Schilling
2016-11-15Grapify the notes APIRobert Schilling
2016-09-16Fix API notes endpoint when posting only emojiZ.J. van de Weg
2016-06-17Sort API endpoints and implement feedbackZ.J. van de Weg
2016-05-18Move note helper method to notes entity fileFelipe Artur
2016-05-16Fix single note api requestFelipe Artur
2016-05-10Fix notes API calls symbol convertionsFelipe Artur
2016-05-10Fix api leaking notes when user is not authorized to read noteableFelipe Artur
2016-04-13Allow back dating notes on creationMichael Greene
2016-04-12Adapt tests to new testing guidelinesRobert Schilling
2016-04-12Fix code review issuesRobert Schilling
2016-04-12Delete notes via APIRobert Schilling
2016-01-13Ensure the API doesn't return notes that the current user shouldn't seeRémy Coutable
2015-07-30Show who last edited a comment if it wasn't the original authorDouwe Maan
2015-01-07Add a message when unable to save an object through api.Marin Jankovski
2014-12-30Forward the messages in api response.Marin Jankovski
2014-12-25Implemented notes (body) patching in API.uran
2014-06-18Fix notes creation via APIDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-13Wipe wall notes featureDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-10Remove thread vars usage from API notes and mr'sDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2013-10-16Fixing unsafe use of Thread.current variable :current_userAngus MacArthur
2013-05-14Refactor API classes. So api classes like Gitlab::Issues become API::IssuesDmitriy Zaporozhets
2013-03-19load notes for wall via apiDmitriy Zaporozhets
2013-02-27API: fixed adding a noteSebastian Ziebell
Now the correct attribute is checked if it's available or not. Also fixed a test.
2013-02-27API: extracted helper method to validate required parameters, code clean upSebastian Ziebell
Added a helper method to check if required parameters are given in an API call. Can be used to return a `400 Bad Request` return code if a required attribute is missing. Code clean up and fixed tests.
2013-02-21API: fixes return codes for notes, documentation updatedSebastian Ziebell
The notes API documentation updated with return codes. API now returns `400 Bad Request` if required attributes are not present. Return codes are documented now, also tested in added tests. The documentation now reflects the current state of the API.
2013-02-13API: extracted helper method to provide 400 bad request error with descriptionSebastian Ziebell
Extracted a method for 400 error (Bad request) and adjusted code accordingly. The name of the missing attribute is used to show which one was missing from the request. It is used to give an appropriate message in the json response.
2013-02-08Merge branch 'master' into fixes/apiSebastian Ziebell
2013-02-06Status code 400 is returned if body is missing on note creation.Sebastian Ziebell
If a note is created with a POST request via API (`/projects/:id/notes`) status code 400 is returned instead of 404. The resource itself exists but the request is incomplete. Specs added to check different status codes when accessing, creating and updating notes.