gitlab-org--gitlab-foss/spec/requests/api
Rémy Coutable 46eb0ebfd2 Merge branch '23584-triggering-builds-from-webhooks' into 'master'
Add ref parameter for triggering builds with gitlab webhook from other project.

Currently GitLab can trigger builds from external tools like curl.
But there is no way to trigger builds with webhook from another GitLab project.
Executing webhook like `/projects/:id/trigger/builds?token=TOKEN&ref=master` results in such message from server:
```
400 No builds created
```

Problem is the ref from request body takes precedence of the ref from query string.
System tries to trigger build for nonexistent branch instead of `master`.
This is the feature of the Grape framework used to build GitLab api.

This MR adds optional `ref` parameter into the api url:
```
/projects/:id/ref/:ref/trigger/builds?token=TOKEN
```

This will lead that the ref in the url will have precedence of the ref inside request body.

This solution provides compatibility with current API urls.

Closes #23584

See merge request !7022
2016-11-15 20:37:04 +00:00
..
access_requests_spec.rb Invert method's naming 2016-10-03 16:57:48 +02:00
api_helpers_spec.rb Fix project features default values 2016-11-01 11:03:56 -02:00
award_emoji_spec.rb Fix tests for Snippets toggling awards 2016-09-19 19:53:09 +03:00
boards_spec.rb Add support to group labels on issues board API 2016-10-19 14:58:26 -02:00
branches_spec.rb Add button to delete all merged branches 2016-11-09 21:04:03 +01:00
broadcast_messages_spec.rb Add BroadcastMessage API implementation 2016-08-31 17:03:18 -03:00
builds_spec.rb Fix optimistic locking 2016-10-26 11:37:23 +02:00
commit_statuses_spec.rb Grapify the commit status API 2016-10-19 12:46:27 +02:00
commits_spec.rb Added path parameter to Commits API 2016-10-24 16:43:52 +02:00
deploy_keys_spec.rb Fixes various errors when adding deploy keys caused by not exiting the control flow. 2016-10-26 12:54:47 +02:00
deployments_spec.rb Docs for API endpoints 2016-08-18 21:10:52 +02:00
doorkeeper_access_spec.rb
environments_spec.rb Expose project for environments 2016-08-18 21:10:52 +02:00
files_spec.rb Add optional 'author' param when making commits 2016-09-19 10:00:26 -07:00
fork_spec.rb Enforce the fork_project permission in Projects::CreateService 2016-09-27 13:17:56 +01:00
groups_spec.rb Grapify the group API 2016-11-15 14:36:42 +01:00
internal_spec.rb Handle LFS token creation and retrieval in the same method, and in the same Redis connection. 2016-09-28 12:13:48 -05:00
issues_spec.rb Add a be_like_time matcher and use it in specs 2016-10-17 14:44:20 +01:00
keys_spec.rb
labels_spec.rb Remove order-dependent expectation 2016-11-09 19:50:32 +01:00
lint_spec.rb Code refactor 2016-09-07 12:10:49 +02:00
members_spec.rb Fix project member access levels 2016-10-21 12:57:53 +03:00
merge_request_diffs_spec.rb Make specs a bit faster 2016-11-01 14:46:59 +02:00
merge_requests_spec.rb Grapify the merge request API 2016-11-15 10:31:18 +01:00
milestones_spec.rb Grapify milestones API 2016-11-10 11:16:21 +01:00
namespaces_spec.rb
notes_spec.rb Fix authored vote from notes 2016-10-24 15:24:56 +02:00
notification_settings_spec.rb Add notification_settings API calls 2016-09-09 17:08:06 +00:00
oauth_tokens_spec.rb Small refactor and syntax fixes. 2016-08-18 16:47:26 -05:00
pipelines_spec.rb Add docs on API for pipelines, plus minor fixes 2016-08-18 16:56:39 +02:00
project_hooks_spec.rb Ensure hook tokens are write-only in the API 2016-11-01 11:40:06 +00:00
project_snippets_spec.rb api: expose web_url for project entities 2016-08-24 10:32:31 -04:00
projects_spec.rb Update 8.14-rc1 migrations to minimize downtime and deploy time 2016-11-11 15:34:00 -03:00
repositories_spec.rb Issue #4270: Recursive option for files through API 2016-11-12 10:00:39 +01:00
runners_spec.rb Grapify runners API 2016-11-10 11:09:08 +01:00
services_spec.rb
session_spec.rb Grapify the session API 2016-11-09 17:36:35 +01:00
settings_spec.rb Allow multiple repository storage shards to be enabled, and automatically round-robin between them 2016-11-04 04:01:08 +00:00
sidekiq_metrics_spec.rb
system_hooks_spec.rb API: Return 400 when creating a systemhook fails 2016-11-08 10:05:19 +01:00
tags_spec.rb
templates_spec.rb Create a new /templates API namespace 2016-10-12 11:09:41 +02:00
todos_spec.rb
triggers_spec.rb Add ref parameter for triggerring builds with gitlab webhook from other project. 2016-11-15 17:19:33 +03:00
users_spec.rb Add query param to filter users on 'external' & 'blocked' type on API 2016-11-08 12:04:05 -08:00
variables_spec.rb
version_spec.rb API: Version information 2016-10-12 16:47:35 +02:00