summaryrefslogtreecommitdiff
path: root/lib/api/environments.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add name & search parameters to project environments APILee Tickett2019-06-241-1/+6
|
* Add new API endpoint to expose single environmentKrasimir Angelov2019-04-091-0/+15
| | | | | | | | This is resolving https://gitlab.com/gitlab-org/gitlab-ce/issues/30157. Implement new API endpoint `/projects/:id/environments/:environment_id` to expose single environment. Include information for environment's last deployment if there is one.
* Prevent leaking of private repo data through APILuke Duncalfe2019-02-181-4/+4
| | | | | default_branch, statistics and config_ci_path are now only exposed if the user has permissions to the repository.
* Enable the Layout/ExtraSpacing cop56392-enable-the-layout-extraspacing-copRémy Coutable2019-01-241-2/+2
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix API::Namespaces to accept namepaces with dotsif-52811-fix_namespaces_api_routingImre Farkas2018-11-281-1/+1
| | | | | It also renames the API::PROJECT_ENDPOINT_REQUIREMENTS constant to API::NAMESPACE_OR_PROJECT_REQUIREMENTS
* Enable frozen string in lib/api and lib/backupgfyoung2018-09-291-0/+2
| | | | | | | | | | Partially addresses #47424. Had to make changes to spec files because stubbing methods on frozen objects is a mess in RSpec and leads to failures: https://github.com/rspec/rspec-mocks/issues/1190
* Support manually stopping any environment from the UIWinnie Hellmann2018-07-101-1/+2
|
* API: Use defined project requirementsrs-api-use-project-requirementsRobert Schilling2017-08-311-1/+1
|
* Conditionally destroy a ressourceRobert Schilling2017-08-281-3/+1
|
* API: Respect the 'If-Unmodified-Since' for delete endpointsRobert Schilling2017-08-281-0/+1
|
* Update grape gemdz-update-grapeDmitriy Zaporozhets2017-07-201-0/+1
| | | | | | | | New version of the gem returns 200 status code on delete with content instead of 204 so we explicitly set status code to keep existing behavior Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* 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>
* Add environment `/stop` action27142-api-replace-destroy-with-stop-environmentToon Claes2017-02-281-0/+17
| | | | Add endpoint to stop an environment through the API.
* Return 204 for delete endpointsRobert Schilling2017-02-281-1/+1
|
* Add an environment slugNick Thomas2016-12-151-0/+3
|
* Define common helper for describe pagination params in apiSemyon Pupkov2016-11-221-2/+3
|
* Use declared_params helper in APIgrapify-declared-paramsRobert Schilling2016-11-141-4/+3
|
* Minor fixes in the Env API endpointszj-env-external-urlZ.J. van de Weg2016-08-011-1/+5
|
* Use Grape DSL for environment endpointsZ.J. van de Weg2016-07-291-48/+43
| | | | Also a couple of minor edits for this branch are included
* Incorporate feedbackZ.J. van de Weg2016-07-291-4/+1
|
* Add API support for environmentsZ.J. van de Weg2016-07-291-0/+87