summaryrefslogtreecommitdiff
path: root/lib/api/projects.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/master' into docker-registryKamil Trzcinski2016-05-131-1/+1
|\ | | | | | | | | # Conflicts: # config/initializers/1_settings.rb
| * Restrict starred projects to viewable onesSean McGivern2016-05-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `User#starred_projects` doesn't perform any visibility checks. This has a couple of problems: 1. It assumes a user can always view all of their starred projects in perpetuity (project not changed to private, access revoked, etc.). 2. It assumes that we'll only ever allow a user to star a project they can view. This is currently the case, but bugs happen. Add `User#viewable_starred_projects` to filter the starred projects by those the user either has explicit access to, or are public or internal. Then use that in all places where we list the user's starred projects.
* | Rename `images` to `container_registry`Kamil Trzcinski2016-05-091-5/+5
| |
* | Make images_enabled configurableKamil Trzcinski2016-04-291-0/+5
|/
* Styling changes to code and docsRobert Schilling2016-04-131-1/+3
|
* Make staring API more restfulRobert Schilling2016-04-131-6/+5
|
* API: Star and unstar a projectRobert Schilling2016-04-131-0/+33
|
* PUT becomes POST on archiving endpointsZeger-Jan van de Weg2016-03-241-4/+4
| | | | | Also the specs have a minor improvement. Mainly the access right spec. Changes are reflected in the docs
* Add endpoints for archiving and unarchivingZeger-Jan van de Weg2016-03-231-0/+28
|
* Bring share project with group API from EEshare-project-ceDmitriy Zaporozhets2016-03-131-0/+27
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Rename allow_guest_to_access_builds to public_buildsKamil Trzcinski2016-02-041-6/+6
|
* Expose allow_guest_to_access_builds in GitLab APIKamil Trzcinski2016-02-041-3/+9
|
* First pass at deleting projects in the background.Josh Frye2016-01-291-2/+2
|
* Merge branch 'ci/api-projects' into 'master' Douwe Maan2016-01-131-6/+11
|\ | | | | | | | | | | | | Extend projects API with CI data Reference #4264 See merge request !2303
| * Modify CI features in projects APIci/api-projectsTomasz Maczukin2016-01-111-27/+14
| |
| * Update ./doc/apiTomasz Maczukin2016-01-071-0/+9
| |
| * Add ci fields in project create/update feature APITomasz Maczukin2016-01-051-3/+12
| |
* | Add API project upload endpointDouwe Maan2016-01-071-1/+11
|/
* Fix API project lookups when querying with a namespace with dotsStan Hu2016-01-031-1/+1
| | | | | | | | | | | | | | | Attempting to use the /projects/:id API by specifying :id in "namespace/project" format would always result in a 404 if the namespace contained a dot. The reason? From http://guides.rubyonrails.org/routing.html#specifying-constraints: "By default the :id parameter doesn't accept dots - this is because the dot is used as a separator for formatted routes. If you need to use a dot within an :id add a constraint which overrides this - for example id: /[^\/]+/ allows anything except a slash." Closes https://github.com/gitlabhq/gitlabhq/issues/9573
* Add project permissions to all project API endpointsStan Hu2015-12-221-3/+3
| | | | This standardizes all the project API formats. Also needed to support Huboard.
* Api support for requesting starred projects for userZeger-Jan van de Weg2015-12-161-0/+11
| | | | Fixes #4112
* Migrate CI::Project to ProjectKamil Trzcinski2015-12-111-0/+6
|
* Fix API setting of 'public' attribute to false will make a project privateStan Hu2015-12-051-2/+6
| | | | Closes #3864
* Expose CI enable option in project featuresKamil Trzcinski2015-11-131-0/+6
| | | | - Enable CI by default for all new projects
* Made suggested content changes based on MR ReviewHan Loong Liauw2015-10-141-1/+1
| | | | | Changed the authentication method for removing fork through API Reflected changes to new auth method in API specs
* Adds ability to remove the forked relationshipHan Loong Liauw2015-10-131-1/+1
| | | | | | | This was previously possible through the API but can now be done through the project#edit settings screen if the current user is the owner of the project. Update changelog
* fix specs. Stage 3Valery Sizov2015-09-151-36/+0
|
* Add order option for projects APIValery Sizov2015-05-141-1/+6
|
* 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
* Allow admins to override restricted visibilityVinnie Okada2015-03-081-3/+3
| | | | | Allow admins to use restricted visibility levels when creating or updating projects.
* Refactor and improve sorting objects in API for projects, issues and merge ↵Dmitriy Zaporozhets2015-02-051-38/+35
| | | | requests
* Implement edit via API for projectsMika Mäenpää2015-01-221-0/+43
|
* Merge pull request #8307 from cirosantilli/project-api-comment-typoJeroen van Baarsen2015-01-181-1/+1
|\ | | | | Typo in project API events comment
| * Typo in project API events commentCiro Santilli2014-11-141-1/+1
| |
* | Add search filter option on project api for authorized projects.Marin Jankovski2015-01-121-3/+4
| |
* | Forward the messages in api response.Marin Jankovski2014-12-301-1/+1
| |
* | Updated indentation on case when statements.Stephan van Leeuwen2014-12-291-20/+20
| |
* | Changed setting the sort variableStephan van Leeuwen2014-12-291-20/+4
| | | | | | | | Changed from using cases to set the sort variable, to use a one line if/else statement
* | Updated projects api to allow orderingStephan van Leeuwen2014-12-291-2/+57
|/ | | | | Added support for order_by and sort parameters, to sort the projects by the specified values. Updated projects api documentation including the order_by and sort parameters
* Remove :keep_repo optionVinnie Okada2014-10-221-7/+1
| | | | Always delete repositories from the filesystem when deleting a project.
* Add option to keep repo on project deleteVinnie Okada2014-10-071-1/+7
| | | | | | | | | Update the project API controller to use `Projects::DestroyService` instead of calling `Project#destroy` directly. Also add an optional parameter, `:keep_repo`, that allows a project to be deleted without deleting the repository, wiki, and satellite from disk.
* API: Initial support for forking a project via the APIBernhard Kaindl2014-10-011-0/+17
| | | | | | | | | | This change adds POST /projects/fork/:id to the API for forking a project into the namespace of the authenticated user, like the "create fork" link in the GUI does. It also calls the same code. Failure and permission checks (except for conflict) are already implemented and handled in ForkService and the API, so the added code is simple and does not alter anything.
* Improve error reporting on users APIjubianchi2014-09-161-2/+2
| | | | | | | | * 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
* Add, delete labels via APIRobert Schilling2014-08-131-11/+0
|
* Cleaner variable nameDmitriy Zaporozhets2014-08-111-3/+5
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Merge branch 'master' into 'master'Dmitriy Zaporozhets2014-08-111-2/+10
|\ | | | | | | | | | | | | | | Let users limit by archived/not archived projects in GitLab API GET /projects Adds a boolean parameter, archived, to the /projects endpoint. See merge request !158
| * Add an option to GET /projects in the GitLab API to exclude archived projectsSasha Joseph2014-07-281-2/+10
| |
* | Fix testsDmitriy Zaporozhets2014-07-301-1/+1
|/ | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Merge pull request #7089 from NARKOZ/api-patchDmitriy Zaporozhets2014-07-231-1/+4
|\ | | | | API patch
| * API: ability to set an import url when creating project for a specified userNihad Abbasov2014-06-061-1/+4
| |