summaryrefslogtreecommitdiff
path: root/spec/requests/api
Commit message (Collapse)AuthorAgeFilesLines
* Replace many :project with :empty_projects in API specsuse-empty_project-factory-in-api-specsRémy Coutable2017-01-1719-54/+53
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch 'dot-in-project-queries' into 'master' Rémy Coutable2017-01-161-6/+11
|\ | | | | | | | | 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-6/+11
| | | | | | | | dots in their name.
* | Only escape the 'No Milestone' paramfix-ruby21-milestone-api-specs-2Sean McGivern2017-01-131-3/+5
| | | | | | | | This is less invasive than the parent commit.
* | API: Implement project issues iid param with IssuesFinder and add tests23194-fix-no-milestone-option-for-projects-endpointDavid Eisner2017-01-121-3/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | - Use IssuesFinder for the /issues API resouce - Tests for iid filter in project issues API resource - Tests for No Milestone filter in issues API resources The "No Milestone" case was not previously tested, and the `/issues` resource did not support the the `milestone` parameter. - Return issues where all labels match from the issues and project issues API resources, like the group issues resource already does. See https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6825#note_17474533 Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Add support for PlantUML diagrams in Asciidoc.Horacio Sanson2017-01-121-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This MR enables rendering of PlantUML diagrams in Asciidoc documents. To add a PlantUML diagram all we need is to include a plantuml block like: ``` [plantuml, id="myDiagram", width="100px", height="100px"] -- bob -> alice : ping alice -> bob : pong -- ``` The plantuml block is substituted by an HTML img element with *src* pointing to an external PlantUML server. This MR also add a PlantUML integration section to the Administrator -> Settings page to configure the PlantUML rendering service and to enable/disable it. Closes: #17603
* | Fix Users API to accept confirm parameterMark Fletcher2017-01-111-0/+9
| |
* | Merge branch 'fix-users-api-500-error' into 'master' Rémy Coutable2017-01-061-0/+8
|\ \ | | | | | | | | | | | | | | | | | | Fix 500 errors when creating a user with identity via API Closes #26295 See merge request !8442
| * | Add a failing spec to the POST /users APIRémy Coutable2017-01-041-0/+8
| | | | | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | | Merge branch ↵Rémy Coutable2017-01-051-1/+66
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | '19966-api-call-to-move-project-to-different-group-fails-when-using-group-and-project-names-instead-of-id' into 'master' Fix groups API to accept path when transferring a project Closes #19966 See merge request !8408
| * | | Fix groups API to accept path when transferring a projectMark Fletcher2017-01-031-1/+66
| | | | | | | | | | | | | | | | * Use standard helpers for finding group and project
* | | | Merge branch ↵Rémy Coutable2017-01-051-0/+10
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | '26261-post-api-v3-projects-idorproject-commits-commits-does-not-work-with-project-path' into 'master' Fix Commits API to accept a Project path upon POST Closes #26261 See merge request !8406
| * | | | Fix Commits API to accept a Project path upon POSTMark Fletcher2017-01-031-0/+10
| |/ / /
* | | | Merge branch 'zj-404-slack-error' into 'master' Kamil Trzciński2017-01-051-36/+57
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | Add API route slack slash commands Closes #25954 See merge request !8362
| * | | Add API route slack slash commandszj-404-slack-errorZ.J. van de Weg2017-01-031-36/+57
| | | |
* | | | Fix project hooks paramsfix-api-project-hooks-paramsRobert Schilling2017-01-031-2/+3
|/ / /
* | | API: extern_uid is a stringapi-fix-extern-uid-validationRobert Schilling2017-01-031-2/+2
|/ /
* | Merge branch 'grapify-settings-api' into 'master' Sean McGivern2016-12-291-2/+1
|\ \ | | | | | | | | | | | | Grapify the settings API See merge request !8336
| * | Grapify the settings APIgrapify-settings-apiRobert Schilling2016-12-291-2/+1
| | |
* | | Merge branch 'fix-api-deprecation' into 'master' Robert Schilling2016-12-281-2/+2
|\ \ \ | |/ / |/| | | | | | | | Fix a Grape deprecation, use `#request_method` instead of `#route_method` See merge request !8297
| * | Fix a Grape deprecation, use `#request_method` instead of `#route_method`fix-api-deprecationRémy Coutable2016-12-231-2/+2
| | | | | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | | Merge branch 'feature/more-storage-statistics' into 'master' Sean McGivern2016-12-262-1/+88
|\ \ \ | |/ / |/| | | | | | | | Add more storage statistics See merge request !7754
| * | Add more storage statisticsMarkus Koller2016-12-212-1/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | Don't expose all namespace fields in APIMarkus Koller2016-12-211-0/+12
| |/
* | Fix state_event parameter to reopen an issuefixes-issues-api-reopenRobert Schilling2016-12-221-0/+7
|/
* Improve specs for Files API4269-public-files-apiRémy Coutable2016-12-202-34/+51
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Allow unauthenticated access to Repositories Files API GET endpointsRémy Coutable2016-12-201-11/+26
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Improve specs for Repositories API4269-public-repositories-apiRémy Coutable2016-12-201-113/+223
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Allow Repositories API GET endpoints to be requested anonymouslyRémy Coutable2016-12-191-82/+194
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Enable Style/MultilineOperationIndentation in Rubocop, fixes #25741Rydkin Maxim2016-12-161-1/+1
|
* Modify `ApiHelpers` spec to adhere to the Four-Phase test style.Timothy Andrew2016-12-161-0/+12
| | | | - Use whitespace to separate the setup, expectation and teardown phases.
* Calls to the API are checked for scope.Timothy Andrew2016-12-162-18/+27
| | | | | | | | | | | | | | - Move the `Oauth2::AccessTokenValidationService` class to `AccessTokenValidationService`, since it is now being used for personal access token validation as well. - Each API endpoint declares the scopes it accepts (if any). Currently, the top level API module declares the `api` scope, and the `Users` API module declares the `read_user` scope (for GET requests). - Move the `find_user_by_private_token` from the API `Helpers` module to the `APIGuard` module, to avoid littering `Helpers` with more auth-related methods to support `find_user_by_private_token`
* Add an environment slugNick Thomas2016-12-151-0/+17
|
* Add Gitlab::Middleware::MultipartJacob Vosmaer2016-12-151-2/+2
|
* Fix wrong error message expectation in API::Commits spec25651-fix-masterRémy Coutable2016-12-141-1/+1
| | | | | | | This was because the MR was a bit behind master and the error message got updated in the meantime by 79aad815. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch 'api-cherry-pick' into 'master' Rémy Coutable2016-12-131-0/+70
|\ | | | | | | | | | | | | Adds the ability to cherry pick a commit via the API. Right now it only supports to directly cherry pick a commit and not starting a MR from it. Shall we do that also for the API? Closes #25450 See merge request !8047
| * Make rubocop happyapi-cherry-pickRobert Schilling2016-12-131-1/+1
| |
| * API: Ability to cherry-pick a commitRobert Schilling2016-12-131-0/+70
| |
* | Merge branch '25482-fix-api-sudo' into 'master' Sean McGivern2016-12-132-44/+68
|\ \ | | | | | | | | | | | | | | | | | | API: Memoize the current_user so that the sudo can work properly Closes #25482 See merge request !8017
| * | Be smarter when finding a sudoed user in API::Helpers25482-fix-api-sudoRémy Coutable2016-12-131-2/+2
| | | | | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
| * | API: Memoize the current_user so that the sudo can work properlyRémy Coutable2016-12-122-42/+66
| |/ | | | | | | | | | | | | | | The issue was arising when `#current_user` was called a second time after a user was impersonated: the `User#is_admin?` check would be performed on it and it would fail. Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Merge branch 'api-simple-group-project' into 'master' Rémy Coutable2016-12-131-2/+13
|\ \ | | | | | | | | | | | | | | | | | | API: Ability to get group's project in simple representation Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/25412 See merge request !8060
| * | API: Ability to get group's project in simple representationapi-simple-group-projectRobert Schilling2016-12-131-2/+13
| | |
* | | Merge branch 'api-dont-allow-blank-mr-titles' into 'master' Sean McGivern2016-12-131-0/+16
|\ \ \ | |/ / |/| | | | | | | | | | | | | | Don't allow blank MR titles in API Closes #25033 See merge request !7848
| * | Don't allow blank MR titles in APIapi-dont-allow-blank-mr-titlesRobert Schilling2016-12-131-0/+16
| |/
* | Merge branch 'grapify-service-api' into 'master' Rémy Coutable2016-12-121-2/+3
|\ \ | | | | | | | | | | | | | | | | | | Grapify the service API Related to #22928 See merge request !7970
| * | Grapify the service APIRobert Schilling2016-12-091-2/+3
| | |
* | | Merge branch 'api-fix-group-projects-filter' into 'master' Rémy Coutable2016-12-121-0/+11
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | API: Add the project filter to the groups endpoint. Related to #22928. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/25420 See merge request !8034
| * | | API: Fix groups filterRobert Schilling2016-12-121-0/+11
| | | |
* | | | Merge branch 'issue_25030' into 'master' Sean McGivern2016-12-121-0/+31
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | Allow branch names with dots on API endpoint closes #25030 See merge request !7963