API documentation, changelog and additional tests for YouTrack integration service

This commit is contained in:
Yauhen Kotau 2019-02-20 20:54:47 +03:00
parent 5011d83cb1
commit dd6fbbc44d
3 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
title: Add YouTrack integration service
merge_request: 25361
author: Yauhen Kotau @bessorion
type: added

View File

@ -1101,3 +1101,39 @@ GET /projects/:id/services/mock-ci
```
[11435]: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11435
## YouTrack
YouTrack issue tracker
### Create/Edit YouTrack service
Set YouTrack service for a project.
```
PUT /projects/:id/services/youtrack
```
Parameters:
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `issues_url` | string | true | Issue url |
| `project_url` | string | true | Project url |
| `description` | string | false | Description |
### Delete YouTrack Service
Delete YouTrack service for a project.
```
DELETE /projects/:id/services/youtrack
```
### Get YouTrack Service Settings
Get YouTrack service settings for a project.
```
GET /projects/:id/services/youtrack
```

View File

@ -50,6 +50,7 @@ describe Project do
it { is_expected.to have_one(:teamcity_service) }
it { is_expected.to have_one(:jira_service) }
it { is_expected.to have_one(:redmine_service) }
it { is_expected.to have_one(:youtrack_service) }
it { is_expected.to have_one(:custom_issue_tracker_service) }
it { is_expected.to have_one(:bugzilla_service) }
it { is_expected.to have_one(:gitlab_issue_tracker_service) }