summaryrefslogtreecommitdiff
path: root/lib/api
Commit message (Collapse)AuthorAgeFilesLines
* Fix transferring of project to another group using the API.Douwe Maan2015-07-111-2/+2
|
* Revert "api: add 'system', 'upvote', and 'downvote' fields to note queries"Stan Hu2015-07-091-3/+0
| | | | This reverts commit dd4fee5fdbda07fbc09234c4b043c3c9939a6a9b.
* api: add 'system', 'upvote', and 'downvote' fields to note queriesBen Boeckel2015-07-091-0/+3
|
* Merge branch 'settings-via-api' into 'master'Dmitriy Zaporozhets2015-07-073-0/+58
|\ | | | | | | | | | | | | | | API to set application settings for admin Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> See merge request !934
| * Add tests and improve logicDmitriy Zaporozhets2015-07-061-1/+2
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * Add docs and empty specs for applicaiton settings APIDmitriy Zaporozhets2015-07-061-2/+1
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * API to set application settings for adminDmitriy Zaporozhets2015-07-033-0/+58
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Allow user to be blocked and unblocked via the APISteve Norman2015-07-031-0/+30
|/
* Merge branch 'rename-abilities' into 'master'Dmitriy Zaporozhets2015-06-263-6/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rename abilities to correspond contoller/model action names 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 ``` See merge request !896
| * Rename abilities to correspond contoller/model action namesrename-abilitiesDmitriy Zaporozhets2015-06-263-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Only people who can manage issue can assign labels to itpermission-improvementsDmitriy Zaporozhets2015-06-261-1/+1
|/ | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Add 2FA status to user admin APIStan Hu2015-06-231-0/+1
| | | | Closes https://github.com/gitlabhq/gitlabhq/issues/9391
* Fix error when deleting a user who has projectsStan Hu2015-06-231-1/+1
| | | | | Closes #1856 Closes https://github.com/gitlabhq/gitlabhq/issues/9394
* Fix editing files via APIDmitriy Zaporozhets2015-06-051-24/+26
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Merge branch 'maser/gitlab-ce-order-commit-comments-in-api' into 'master'Dmitriy Zaporozhets2015-06-051-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | Order commit comments in API chronologically When fetching commit comments via API, the comments were not ordered, but just returned in the order Postgresql finds them. Now the API always returns comments in chronological order. Same as !628 but with CI See merge request !768
| * Order commit comments in API chronologicallyMartin Luder2015-05-081-1/+1
| | | | | | | | | | | | When fetching commit comments via API, the comments were not ordered, but just returned in the order Postgresql finds them. Now the API always returns comments in chronological order.
* | Merge branch 'make-namespaces-api-available-to-all-users' into 'master'Dmitriy Zaporozhets2015-06-041-5/+6
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make namespace API available to all users ### What does this MR do? This MR makes it possible for a user to query namespaces to which he/she has access. Also, it adds documentation for the existing API. ### Why was this MR needed? Even though the `groups` API exists, it might still be useful to have an endpoint that tells the namespace type (e.g. `user` vs. `group`), especially if a user has access to a number of different projects. ### What are the relevant issue numbers? Closes https://github.com/gitlabhq/gitlabhq/issues/9328 See merge request !708
| * | Make namespace API available to all usersStan Hu2015-05-281-5/+6
| | | | | | | | | | | | Closes https://github.com/gitlabhq/gitlabhq/issues/9328
* | | Wrap group removal into serviceDmitriy Zaporozhets2015-06-031-1/+1
| | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | | Disable changing of the source branch in merge request update APIStan Hu2015-05-291-2/+6
| | |
* | | You can not remove user if he/she is an only owner of groupDmitriy Zaporozhets2015-05-281-1/+1
|/ / | | | | | | | | | | | | To prevent loose of group data you need to transfer or remove group first before you can remove user Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Add support for Webhook note eventsStan Hu2015-05-211-2/+4
| | | | | | | | Closes https://github.com/gitlabhq/gitlabhq/issues/6745
* | Allow to configure gitlab_shell_secret locationJakub Jirutka2015-05-161-1/+1
| |
* | Add order option for projects APIValery Sizov2015-05-141-1/+6
| |
* | Improve Git access error messages.Douwe Maan2015-05-131-19/+7
| |
* | Added X-GitLab-Event header for web hooksbugagazavr2015-05-081-1/+1
|/
* Add current_sign_in_at to api UserSven Selberg2015-05-041-1/+1
|
* Merge branch 'api-iid' of https://github.com/jubianchi/gitlabhq into ↵Dmitriy Zaporozhets2015-05-033-5/+18
|\ | | | | | | jubianchi-api-iid
| * Query issues, merge requests and milestones with their IID through APIjubianchi2015-05-023-5/+18
| |
* | Merge pull request #9066 from jirutka/fix-6417Dmitriy Zaporozhets2015-05-031-2/+2
|\ \ | |/ |/| Fix #6417: users with group permission should be able to create groups via API
| * Fix #6417: users with group permission should be able to create groups via APIRobert Schilling2015-03-311-2/+2
| |
* | Don't allow a merge request to be merged when its title starts with "WIP".Douwe Maan2015-04-301-2/+2
| |
* | Send 500 errors as JSON in the APIjubianchi2015-04-271-1/+1
| |
* | Revert "Added X-GitLab-Event header for web hooks"Valery Sizov2015-04-271-1/+1
| | | | | | | | This reverts commit 548f182814acd0f7a110e6c165c186e345901b00.
* | Added X-GitLab-Event header for web hooksbugagazavr2015-04-251-1/+1
| |
* | Use project.commit convenience method.Douwe Maan2015-04-243-6/+6
| |
* | Let commit model know about its project.Douwe Maan2015-04-241-2/+2
| |
* | Track who created a group or project member.Douwe Maan2015-04-141-1/+1
| |
* | Use through-relation instead of manually mapping.Douwe Maan2015-04-141-2/+1
| |
* | Rename manage_group ability to admin_group for consistency with project.Douwe Maan2015-04-142-4/+4
| |
* | Include creator_id in project info of APIChristoph Dreis2015-04-101-0/+1
| |
* | Modified lib/api/entities.rb to expose Project class tag_list property to ↵Cristian Medina2015-04-031-1/+1
| | | | | | | | | | | | | | | | the API Updated projects.md to show tag_list field when performing GETs Updated projects_spec.rb to include check for tag_list key in project list Added changes to the CHANGELOG
* | Merge branch 'repository-archive-worker' into 'master'Dmitriy Zaporozhets2015-04-021-5/+6
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Archive repositories in background worker. Depends on https://gitlab.com/gitlab-org/gitlab_git/merge_requests/17 being merged, a new `gitlab_git` being released and this MR's `Gemfile.lock` being updated.. See private issue https://dev.gitlab.org/gitlab/gitlabhq/issues/2173. To do after this is merged: Update https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/templates/default/sv-sidekiq-run.erb in omnibus. See merge request !436
| * | Archive repositories in background worker.Douwe Maan2015-03-311-5/+6
| |/
* | Merge pull request #9023 from dantudor/patch-1Dmitriy Zaporozhets2015-03-311-3/+3
|\ \ | |/ |/| Allow ability to delete branches with '/` in name
| * Added the missing commaDan Tudor2015-03-311-1/+1
| |
| * Allow ability to delete branches with '/` in nameDan Tudor2015-03-251-3/+3
| |
* | Merge branch 'events-paginate' into 'master'Douwe Maan2015-03-301-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | API: Events paginate Updated the api method for /project/:id/events, to use the paginate method instead of limiting and offsetting the recent events in the method itself. This will also change the first page to be 1 instead of 0, but using 0 will still work and will give back the first page. This also add's the link headers (next/first/last). See merge request !267
| * | Updated api method GET /projects/:id/events to use paginate instead of a ↵Stephan van Leeuwen2015-03-241-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | self-implementation Also updated example request url Added changelog item
* | | properly paginate project events in APINihad Abbasov2015-03-291-4/+1
| | |