summaryrefslogtreecommitdiff
path: root/lib/api
Commit message (Collapse)AuthorAgeFilesLines
* Replace Gitlab::REVISION with Gitlab.revision and handle installations ↵46600-fix-gitlab-revision-when-not-in-git-repoRémy Coutable2018-05-242-2/+2
| | | | | | without a .git directory Signed-off-by: Rémy Coutable <remy@rymai.me>
* Use ApplicationSetting.current_without_cache instead of ↵Rémy Coutable2018-05-232-2/+2
| | | | | | ApplicationSetting.current where applicable Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch 'ab-42194-keyset-pagination' into 'master'Yorick Peterse2018-05-221-40/+213
|\ | | | | | | | | | | | | API: Keyset pagination support Closes #45756 See merge request gitlab-org/gitlab-ce!18584
| * Add feature-flag for keyset pagination.ab-42194-keyset-paginationAndreas Brandl2018-05-211-1/+1
| |
| * Add keyset pagination for API calls.Andreas Brandl2018-05-211-5/+165
| | | | | | | | Closes #45756.
| * Refactor and extract DefaultPaginationStrategy.Andreas Brandl2018-05-211-43/+56
| |
* | Expose readme url in Project APIImre Farkas2018-05-221-1/+1
| |
* | Fix `expose_url` helper does not include custom base url if it is setFrancisco Javier López2018-05-221-2/+7
|/
* Merge branch 'create-live-trace-only-if-job-is-complete' into 'master'Kamil Trzciński2018-05-211-0/+1
|\ | | | | | | | | | | | | Append trace chunk only if job is running Closes #46383 See merge request gitlab-org/gitlab-ce!18969
| * Add the same gurad clause with artifacts uplaodingShinya Maeda2018-05-211-1/+2
| |
| * Append trace only if the job is runningShinya Maeda2018-05-211-1/+1
| |
* | Merge branch '44799-api-naming-issue-scope' into 'master'Rémy Coutable2018-05-212-8/+10
|\ \ | |/ |/| | | | | | | | | Resolve "API naming for issue scope" Closes #44799 See merge request gitlab-org/gitlab-ce!18935
| * Add created_by_me and assigned_to_me scopes44799-api-naming-issue-scopeMark Chao2018-05-212-8/+10
| | | | | | | | Deprecate corresponding dash versions created-by-me and assigned-to-me
* | Resolve "Expand API: Render an arbitrary Markdown document"blackst0ne2018-05-182-0/+34
| |
* | Merge branch 'sh-fix-grape-logging-status-code' into 'master'Douwe Maan2018-05-181-8/+9
|\ \ | | | | | | | | | | | | Fix api_json.log not always reporting the right HTTP status code See merge request gitlab-org/gitlab-ce!19028
| * | Fix api_json.log not always reporting the right HTTP status codeStan Hu2018-05-171-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As described in https://github.com/aserafin/grape_logging/issues/45, if a Grape error is caught by the handlers and a different return code is returned, then the api_json.log would have a 500 error code instead of the right value. Inserting the GrapeLogging middleware after the Grape middleware fixes this problem. Seen in https://gitlab.com/gitlab-com/infrastructure/issues/4249
* | | Move API group deletion to SidekiqStan Hu2018-05-182-3/+6
|/ /
* | Merge branch 'jprovazn-remote-upload-destroy' into 'master'Kamil Trzciński2018-05-162-0/+2
|\ \ | | | | | | | | | | | | | | | | | | Delete remote uploads Closes #45425 See merge request gitlab-org/gitlab-ce!18698
| * | Whitelisted query limits for group destroy APIjprovazn-remote-upload-destroyJan Provaznik2018-05-162-0/+2
| | |
* | | Remove unnecessary runner.is_shared? checks in api because they are handled ↵Dylan Griffith2018-05-161-2/+0
| | | | | | | | | | | | by policy
* | | Allow admin to assign shared runner to project through APIDylan Griffith2018-05-161-2/+2
| | |
* | | Change policy list_runner_jobs -> read_runnerDylan Griffith2018-05-161-1/+1
| | |
* | | Rename User#ci_authorized_runners -> ci_owned_runnersDylan Griffith2018-05-162-2/+2
| | |
* | | Use can? policies for lib/api/runners.rbDylan Griffith2018-05-161-9/+5
| | |
* | | Allow group runners to be viewed/edited in APIDylan Griffith2018-05-161-0/+1
|/ /
* | Remove authentication for readonly endpoints in issues APIhaseeb2018-05-151-1/+2
|/
* Block access to API & git when terms are enforcedBob Van Landuyt2018-05-101-1/+11
| | | | | | When terms are enforced, but the user has not accepted the terms access to the API & git is rejected with a message directing the user to the web app to accept the terms.
* Support 'active' setting on Runner Registration API endpointTomasz Maczukin2018-05-091-1/+2
|
* Expose runner ip address to runners APILars Greiss2018-05-081-0/+1
| | | | Signed-off-by: Lars Greiss <l.greiss@mediacologne.de>
* Enforce proper 416 support for runner trace patch endpointKamil Trzciński2018-05-071-3/+14
|
* Backports every CE related change from ee-44542 to CETiago Botelho2018-05-041-0/+1
|
* Merge branch 'feature/runner-per-group' into 'master'Kamil Trzciński2018-05-042-6/+21
|\ | | | | | | | | Shared CI runners for groups See merge request gitlab-org/gitlab-ce!9646
| * Merge branch 'master' into feature/runner-per-groupDylan Griffith2018-05-038-58/+159
| |\
| * | Remove API changes for assigning group runner to projectDylan Griffith2018-04-301-1/+0
| | | | | | | | | | | | Since we are going to handle the API stuff later we can just leave this as error case since the model validations will stop this
| * | Start persisting runner_type when creating runnersDylan Griffith2018-04-301-3/+3
| | |
| * | Rename Runner#group? -> #assigned_to_group? and Runner#project? -> ↵Dylan Griffith2018-04-301-1/+1
| | | | | | | | | | | | #assigned_to_project?
| * | Merge branch 'master' into siemens-runner-per-groupDylan Griffith2018-04-243-4/+12
| |\ \
| * | | runner can't be assigned to more than 1 groupAlexis Reigel2018-04-231-1/+0
| | | | | | | | | | | | | | | | therefore we don't need the api check.
| * | | disallow group runners to become project runnersAlexis Reigel2018-04-231-0/+1
| | | |
| * | | revert support for v3 apiAlexis Reigel2018-04-231-1/+0
| | | |
| * | | support group runners in existing API endpointsAlexis Reigel2018-04-234-4/+21
| | | |
* | | | Fix lambda arguments in Grape entitiesRémy Coutable2018-05-031-2/+2
| |_|/ |/| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | | Merge request and commit discussions APIJan Provaznik2018-05-015-49/+148
| | |
* | | show only groups an admin is a member of in dashboards/gropsRoger Rüttimann2018-05-012-9/+10
| | |
* | | Add sha filter to list pipelinesJames Ramsay2018-04-271-0/+1
| |/ |/| | | | | | | | | | | To find the pipeline for a specific sha requires scanning the list of all pipelines for a ref that contains the sha. This makes it hard to find the pipeline id needed to access a trace for a specific job run in the pipeline using the API.
* | Resolve "Namespace factory is problematic"Lin Jen-Shin2018-04-231-1/+3
| |
* | Merge branch '45576-fix-create-project-for-user-endpoint' into 'master'Rémy Coutable2018-04-231-2/+8
|\ \ | | | | | | | | | | | | | | | | | | Resolve "Upgrading to API V4 Project Creation for user Fails" Closes #45576 See merge request gitlab-org/gitlab-ce!18518
| * | Fix project creation for user endpoint bugMark Fletcher2018-04-231-2/+8
| |/ | | | | | | | | | | In this endpoint the `jobs_enabled` parameter must be translated to `builds_enabled` before being passed to the `Projects::CreateService`.
* | Add 2FA filter to users API for admins onlyDmitriy Zaporozhets2018-04-231-1/+1
|/ | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Add an API endpoint to download git repository snapshotsNick Thomas2018-04-193-0/+45
|