summaryrefslogtreecommitdiff
path: root/lib/api/projects.rb
Commit message (Collapse)AuthorAgeFilesLines
* Rename query parameter to `membership`28865-filter-by-authorized-projects-in-v4Toon Claes2017-03-031-1/+2
| | | | The query parameter `membership` should be more self-explaining.
* Use string based `visibility` getter & setterToon Claes2017-03-021-4/+4
| | | | | | 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-10/+6
| | | | | | | | | | 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.
* Update occurrences of MWBS to MWPSfix/mwbs-to-mwpsJames Lopez2017-03-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rename column in the database Rename fields related to import/export feature Rename API endpoints Rename documentation links Rename the rest of occurrences in the code Replace the images that contain the words "build succeeds" and docs referencing to them Make sure pipeline is green and nothing is missing. updated doc images renamed only_allow_merge_if_build_succeeds in projects and fixed references more updates fix some spec failures fix rubocop offences fix v3 api spec fix MR specs fixed issues with partials fix MR spec fix alignment add missing v3 to v4 doc wip - refactor v3 endpoints fix specs fix a few typos fix project specs copy entities fully to V3 fix entity error more fixes fix failing specs fixed missing entities in V3 API remove comment updated code based on feedback typo fix spec
* Merge branch '6073_project_api' into 'master' Sean McGivern2017-02-281-1/+2
|\ | | | | | | | | | | | | API project create: Make name or path required Closes #6073 See merge request !9416
| * API project create: Make name or path requiredJarka Kadlecova2017-02-271-1/+2
| |
* | Return 204 for delete endpointsRobert Schilling2017-02-281-1/+0
|/
* Return 202 with JSON body on async removals on V4 API3874-correctly-return-json-on-delete-responsesOswaldo2017-02-231-0/+2
|
* Enable Style/MultilineArrayBraceLayoutDouwe Maan2017-02-231-1/+2
|
* Enable Style/SpaceInsideBracketsDouwe Maan2017-02-231-1/+1
|
* Add housekeeping endpoint for Projects APIMark Fletcher2017-02-221-0/+13
|
* API: Moved `DELETE /projects/:id/star` to `POST /projects/:id/unstar`api-star-restfulRobert Schilling2017-02-201-1/+1
|
* API: Consolidate /projects endpointToon Claes2017-02-141-55/+4
| | | | | | | | | | | It consolidates these endpoints: - /projects - /projects/owned - /projects/visible - /projects/starred - /projects/all Into the /projects endpoint using query parameters.
* Move /projects/fork/:id to /projects/:id/fork14492-change-fork-endpointOswaldo Ferreira2017-02-131-1/+1
|
* API: remove `public` param for projectsToon Claes2017-02-071-15/+4
| | | | | | | | | The create and edit actions for projects had these parameters: - `public` (optional) - if true same as setting `visibility_level = 20` - `visibility_level` (optional) Remove the `public` parameter to avoid contradiction.
* Unify projects search by removing /projects/:search endpointOswaldo Ferreira2017-01-301-16/+0
|
* Merge branch 'sandish/gitlab-ce-update_ret_val' into 'master' Robert Speicher2017-01-161-4/+4
|\ | | | | | | | | Ensure updating project settings shows a flash message on success See merge request !8579
| * Add a spec and actually display the flash noticeRémy Coutable2017-01-161-4/+4
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Merge branch 'dot-in-project-queries' into 'master' Rémy Coutable2017-01-161-1/+1
|\ \ | |/ |/| | | | | Add a constraint on the query parameter to allow querying for projects with dots in their name. See merge request !8210
| * Add a constraint on the query parameter to allow querying for projects with ↵Bruno Melli2017-01-141-1/+1
| | | | | | | | dots in their name.
* | Add more storage statisticsMarkus Koller2016-12-211-37/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | This adds counters for build artifacts and LFS objects, and moves the preexisting repository_size and commit_count from the projects table into a new project_statistics table. The counters are displayed in the administration area for projects and groups, and also available through the API for admins (on */all) and normal users (on */owned) The statistics are updated through ProjectCacheWorker, which can now do more granular updates with the new :statistics argument.
* | Consistently use current_user in API entitiesMarkus Koller2016-12-211-6/+6
|/
* Allow public access to some Project API endpoints4269-public-apiRémy Coutable2016-12-011-10/+18
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Grapify the projects APIgrapify-projects-apiRobert Schilling2016-11-281-313/+265
|
* API: Introduce `#find_project!` which also check access permissionRémy Coutable2016-11-241-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* API: Add endpoint to delete a group shareapi-delete-group-shareRobert Schilling2016-11-231-0/+13
|
* Add setting to only allow merge requests to be merged when all discussions ↵Rodolfo Santos2016-11-041-3/+6
| | | | | | are resolved Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch 'api-fix-project-group-sharing' into 'security'Rémy Coutable2016-10-111-0/+6
| | | | | | | | | | | | | | | | | | | | | API: Share projects only with groups current_user can access Aims to address the issues here: https://gitlab.com/gitlab-org/gitlab-ce/issues/23004 * Projects can be shared with non-existent groups * Projects can be shared with groups that the current user does not have access to read Concerns: The new implementation of the API endpoint allows projects to be shared with a larger range of groups than can be done via the web UI. The form for sharing a project with a group uses the following API endpoint to index the available groups: https://gitlab.com/gitlab-org/gitlab-ce/blob/494269fc92f61098ee6bd635a0426129ce2c5456/lib/api/groups.rb#L17. The groups indexed in the web form will only be those groups that the user is currently a member of. The new implementation allows projects to be shared with any group that the authenticated user has access to view. This widens the range of groups to those that are public and internal. See merge request !2005 Signed-off-by: Rémy Coutable <remy@rymai.me>
* Tidy up project list actionsben.boeckel/gitlab-ce-api-visible-projectsSean McGivern2016-10-051-28/+24
|
* api: add /projects/visible API endpointBen Boeckel2016-10-041-0/+15
| | | | FIxes #19361, #3119.
* Expose project share expiration_date field on APIissue_22382Felipe Artur2016-09-281-5/+6
|
* API: Return 404 when trying to fork to unaccessible namespaceRémy Coutable2016-09-221-1/+3
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Allow to set request_access_enabled for groups and projects using APIFelipe Artur2016-09-191-42/+47
|
* Use Search::GlobalService.new in the `GET /projects/search/:query` endpointrc-api-use-search-globalservice-in-projects-search-apiRémy Coutable2016-09-121-12/+3
| | | | | | | | | | Also streamline the sorting part while we're at it. That being done, there's currently a duplication between `GET /projects/search/:query` and `GET /projects?search=:search` so we might want to keep only the latter for 9.0... Signed-off-by: Rémy Coutable <remy@rymai.me>
* Search should compare only the lowercase versions of the project namesRazzeee2016-09-091-1/+1
|
* Higher code quality for fork to namespace APIOlaf Tomalka2016-09-061-1/+0
|
* Improved code quality on API fork namespace featureOlaf Tomalka2016-09-061-3/+6
|
* Added fork API paremeter for a specific namespaceOlaf Tomalka2016-09-061-2/+14
| | | | | | | | | Browser interface allows forking to an owned grup. This commit brings API up to speed by providing optional namespace parameter to fork API. This allows forking to users and groups under forker's control using their id or unique name. Fixes #21591
* Project tools visibility levelFelipe Artur2016-09-011-1/+1
|
* Renamed `enable_lfs` to `lfs_enabled` for the Project field, and related fixes.project-specific-lfsPatricio Cano2016-08-301-5/+7
|
* Added CHANGELOG, documentation, and API functionalityPatricio Cano2016-08-301-2/+6
|
* expose 'only_allow_merge_if_build_succeeds' project setting in the APIMarc Dequènes (Duck)2016-08-241-3/+6
|
* Clean up project destructionclean-up-project-destroyStan Hu2016-08-101-1/+1
| | | | | | Instead of redirecting from the project service to the service and back to the model, put all destruction code in the service. Also removes a possible source of failure where run_after_commit may not destroy the project.
* Replace parse_boolean with to_booleanRobert Schilling2016-07-201-1/+1
|
* removes basicprojectwithaccess and replaces it with basicprojectdetailstiagonbotelho2016-07-121-1/+1
|
* changes the usage of simpleprojectdetails to already implemented ↵tiagonbotelho2016-07-121-11/+0
| | | | basicprojectsdetails and changes the url to a more reader friendly format
* adds basic functionality to the new endpoint of the apitiagonbotelho2016-07-121-0/+11
|
* changes string to symbol in paramtiagonbotelho2016-07-121-1/+1
|
* adds test to check json fields on simple request and changes the url request ↵tiagonbotelho2016-07-121-1/+1
| | | | format
* changes the usage of simpleprojectdetails to already implemented ↵tiagonbotelho2016-07-121-12/+5
| | | | basicprojectsdetails and changes the url to a more reader friendly format