summaryrefslogtreecommitdiff
path: root/lib/api/notes.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove the User#is_admin? methodblackst0ne2017-04-091-1/+1
|
* API: Make the /notes endpoint work with noteable iid instead of idToon Claes2017-03-271-5/+9
| | | | | | | | | | | | | | | | 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.
* 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>
* Return 204 for delete endpointsRobert Schilling2017-02-281-2/+0
|
* Revert "Prefer leading style for Style/DotPosition"Douwe Maan2017-02-231-2/+2
| | | | This reverts commit cb10b725c8929b8b4460f89c9d96c773af39ba6b.
* Prefer leading style for Style/DotPositionDouwe Maan2017-02-231-2/+2
|
* Enable Style/ColonMethodCallDouwe Maan2017-02-231-1/+1
|
* Enable Style/MutableConstantDouwe Maan2017-02-231-1/+1
|
* Fix inconsistent naming for services that delete thingsdixpac2017-02-081-1/+1
| | | | | | * 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
* Merge branch 'fix-guest-access-posting-to-notes' into 'security' Robert Speicher2017-01-231-10/+16
| | | | | Prevent users from creating notes on resources they can't access See https://dev.gitlab.org/gitlab/gitlabhq/merge_requests/2054
* Parameter already enforced via grapeclean-api-paramsRobert Schilling2016-12-281-2/+0
|
* Use the pagination helper in the APIuse-pagination-helperRobert Schilling2016-12-041-1/+3
|
* Grapify the notes APIgrapify-notes-apiRobert Schilling2016-11-151-67/+57
|
* Fix API notes endpoint when posting only emojiZ.J. van de Weg2016-09-161-4/+4
|
* Sort API endpoints and implement feedbackZ.J. van de Weg2016-06-171-1/+1
|
* Move note helper method to notes entity fileissue_17302Felipe Artur2016-05-171-2/+8
|
* Fix single note api requestFelipe Artur2016-05-161-5/+5
|
* Fix notes API calls symbol convertionsFelipe Artur2016-05-101-3/+3
|
* Fix api leaking notes when user is not authorized to read noteableFelipe Artur2016-05-091-13/+18
|
* Allow back dating notes on creationMichael Greene2016-04-131-0/+5
|
* Adapt tests to new testing guidelinesRobert Schilling2016-04-121-0/+2
|
* Fix code review issuesRobert Schilling2016-04-121-4/+2
|
* Delete notes via APIRobert Schilling2016-04-121-0/+17
|
* Ensure the API doesn't return notes that the current user shouldn't seeRémy Coutable2016-01-131-2/+19
|
* Show who last edited a comment if it wasn't the original authorDouwe Maan2015-07-301-7/+5
|
* Add a message when unable to save an object through api.Marin Jankovski2015-01-071-1/+1
|
* Forward the messages in api response.Marin Jankovski2014-12-301-1/+1
|
* Implemented notes (body) patching in API.uran2014-12-251-0/+33
|
* Fix notes creation via APIDmitriy Zaporozhets2014-06-181-5/+8
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Wipe wall notes featureDmitriy Zaporozhets2014-06-131-49/+0
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Remove thread vars usage from API notes and mr'sDmitriy Zaporozhets2014-06-101-22/+18
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Fixing unsafe use of Thread.current variable :current_userAngus MacArthur2013-10-161-18/+22
|
* Refactor API classes. So api classes like Gitlab::Issues become API::IssuesDmitriy Zaporozhets2013-05-141-1/+1
|
* load notes for wall via apiDmitriy Zaporozhets2013-03-191-0/+4
|
* API: fixed adding a noteSebastian Ziebell2013-02-271-1/+1
| | | | Now the correct attribute is checked if it's available or not. Also fixed a test.
* API: extracted helper method to validate required parameters, code clean upSebastian Ziebell2013-02-271-3/+2
| | | | | | 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.
* API: fixes return codes for notes, documentation updatedSebastian Ziebell2013-02-201-0/+5
| | | | | | 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.
* API: extracted helper method to provide 400 bad request error with descriptionSebastian Ziebell2013-02-131-1/+1
| | | | | | 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.
* Merge branch 'master' into fixes/apiSebastian Ziebell2013-02-081-1/+1
|\
| * Expose MergeRequest object as a notable in the API to allow for easy ↵Micah Huff2013-01-291-1/+1
| | | | | | | | retrieval of comments
* | Status code 400 is returned if body is missing on note creation.Sebastian Ziebell2013-02-061-0/+2
|/ | | | | | | 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.
* Rspec fixesDmitriy Zaporozhets2013-01-041-2/+2
|
* Remove all references tp the project code parameter from the APIRiyad Preukschas2012-12-211-6/+6
|
* API: get a single wall noteNihad Abbasov2012-12-011-0/+12
|
* API: ability to create a wall noteNihad Abbasov2012-11-291-0/+18
|
* API: create new notesNihad Abbasov2012-11-291-0/+22
|
* API: get a single noteNihad Abbasov2012-11-291-0/+15
|
* correct exampleNihad Abbasov2012-11-291-1/+2
|
* API: list wall, snippet and issue notesNihad Abbasov2012-11-291-0/+38