Fix API document
This commit is contained in:
parent
7e42711659
commit
785834cfc0
2 changed files with 22 additions and 20 deletions
|
@ -41,7 +41,7 @@ GET /issues?my_reaction_emoji=star
|
||||||
| `scope` | string | no | Return issues for the given scope: `created-by-me`, `assigned-to-me` or `all`. Defaults to `created-by-me` _([Introduced][ce-13004] in GitLab 9.5)_ |
|
| `scope` | string | no | Return issues for the given scope: `created-by-me`, `assigned-to-me` or `all`. Defaults to `created-by-me` _([Introduced][ce-13004] in GitLab 9.5)_ |
|
||||||
| `author_id` | integer | no | Return issues created by the given user `id`. Combine with `scope=all` or `scope=assigned-to-me`. _([Introduced][ce-13004] in GitLab 9.5)_ |
|
| `author_id` | integer | no | Return issues created by the given user `id`. Combine with `scope=all` or `scope=assigned-to-me`. _([Introduced][ce-13004] in GitLab 9.5)_ |
|
||||||
| `assignee_id` | integer | no | Return issues assigned to the given user `id` _([Introduced][ce-13004] in GitLab 9.5)_ |
|
| `assignee_id` | integer | no | Return issues assigned to the given user `id` _([Introduced][ce-13004] in GitLab 9.5)_ |
|
||||||
| `my_reaction_emoji` | string | no | Return issues reacted by the authenticated user by the given emoji ` _([Introduced][ce-14016] in GitLab 10.0)_ |
|
| `my_reaction_emoji` | string | no | Return issues reacted by the authenticated user by the given `emoji` _([Introduced][ce-14016] in GitLab 10.0)_ |
|
||||||
| `iids[]` | Array[integer] | no | Return only the issues having the given `iid` |
|
| `iids[]` | Array[integer] | no | Return only the issues having the given `iid` |
|
||||||
| `order_by` | string | no | Return issues ordered by `created_at` or `updated_at` fields. Default is `created_at` |
|
| `order_by` | string | no | Return issues ordered by `created_at` or `updated_at` fields. Default is `created_at` |
|
||||||
| `sort` | string | no | Return issues sorted in `asc` or `desc` order. Default is `desc` |
|
| `sort` | string | no | Return issues sorted in `asc` or `desc` order. Default is `desc` |
|
||||||
|
@ -146,7 +146,7 @@ GET /groups/:id/issues?my_reaction_emoji=star
|
||||||
| `scope` | string | no | Return issues for the given scope: `created-by-me`, `assigned-to-me` or `all` _([Introduced][ce-13004] in GitLab 9.5)_ |
|
| `scope` | string | no | Return issues for the given scope: `created-by-me`, `assigned-to-me` or `all` _([Introduced][ce-13004] in GitLab 9.5)_ |
|
||||||
| `author_id` | integer | no | Return issues created by the given user `id` _([Introduced][ce-13004] in GitLab 9.5)_ |
|
| `author_id` | integer | no | Return issues created by the given user `id` _([Introduced][ce-13004] in GitLab 9.5)_ |
|
||||||
| `assignee_id` | integer | no | Return issues assigned to the given user `id` _([Introduced][ce-13004] in GitLab 9.5)_ |
|
| `assignee_id` | integer | no | Return issues assigned to the given user `id` _([Introduced][ce-13004] in GitLab 9.5)_ |
|
||||||
| `my_reaction_emoji` | string | no | Return issues reacted by the authenticated user by the given emoji ` _([Introduced][ce-14016] in GitLab 10.0)_ |
|
| `my_reaction_emoji` | string | no | Return issues reacted by the authenticated user by the given `emoji` _([Introduced][ce-14016] in GitLab 10.0)_ |
|
||||||
| `order_by` | string | no | Return issues ordered by `created_at` or `updated_at` fields. Default is `created_at` |
|
| `order_by` | string | no | Return issues ordered by `created_at` or `updated_at` fields. Default is `created_at` |
|
||||||
| `sort` | string | no | Return issues sorted in `asc` or `desc` order. Default is `desc` |
|
| `sort` | string | no | Return issues sorted in `asc` or `desc` order. Default is `desc` |
|
||||||
| `search` | string | no | Search group issues against their `title` and `description` |
|
| `search` | string | no | Search group issues against their `title` and `description` |
|
||||||
|
@ -251,7 +251,7 @@ GET /projects/:id/issues?my_reaction_emoji=star
|
||||||
| `scope` | string | no | Return issues for the given scope: `created-by-me`, `assigned-to-me` or `all` _([Introduced][ce-13004] in GitLab 9.5)_ |
|
| `scope` | string | no | Return issues for the given scope: `created-by-me`, `assigned-to-me` or `all` _([Introduced][ce-13004] in GitLab 9.5)_ |
|
||||||
| `author_id` | integer | no | Return issues created by the given user `id` _([Introduced][ce-13004] in GitLab 9.5)_ |
|
| `author_id` | integer | no | Return issues created by the given user `id` _([Introduced][ce-13004] in GitLab 9.5)_ |
|
||||||
| `assignee_id` | integer | no | Return issues assigned to the given user `id` _([Introduced][ce-13004] in GitLab 9.5)_ |
|
| `assignee_id` | integer | no | Return issues assigned to the given user `id` _([Introduced][ce-13004] in GitLab 9.5)_ |
|
||||||
| `my_reaction_emoji` | string | no | Return issues reacted by the authenticated user by the given emoji ` _([Introduced][ce-14016] in GitLab 10.0)_ |
|
| `my_reaction_emoji` | string | no | Return issues reacted by the authenticated user by the given `emoji` _([Introduced][ce-14016] in GitLab 10.0)_ |
|
||||||
| `order_by` | string | no | Return issues ordered by `created_at` or `updated_at` fields. Default is `created_at` |
|
| `order_by` | string | no | Return issues ordered by `created_at` or `updated_at` fields. Default is `created_at` |
|
||||||
| `sort` | string | no | Return issues sorted in `asc` or `desc` order. Default is `desc` |
|
| `sort` | string | no | Return issues sorted in `asc` or `desc` order. Default is `desc` |
|
||||||
| `search` | string | no | Search project issues against their `title` and `description` |
|
| `search` | string | no | Search project issues against their `title` and `description` |
|
||||||
|
@ -1099,3 +1099,4 @@ Example response:
|
||||||
```
|
```
|
||||||
|
|
||||||
[ce-13004]: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/13004
|
[ce-13004]: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/13004
|
||||||
|
[ce-14016]: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/14016
|
||||||
|
|
|
@ -41,7 +41,7 @@ Parameters:
|
||||||
| `scope` | string | no | Return merge requests for the given scope: `created-by-me`, `assigned-to-me` or `all`. Defaults to `created-by-me` |
|
| `scope` | string | no | Return merge requests for the given scope: `created-by-me`, `assigned-to-me` or `all`. Defaults to `created-by-me` |
|
||||||
| `author_id` | integer | no | Returns merge requests created by the given user `id`. Combine with `scope=all` or `scope=assigned-to-me` |
|
| `author_id` | integer | no | Returns merge requests created by the given user `id`. Combine with `scope=all` or `scope=assigned-to-me` |
|
||||||
| `assignee_id` | integer | no | Returns merge requests assigned to the given user `id` |
|
| `assignee_id` | integer | no | Returns merge requests assigned to the given user `id` |
|
||||||
| `my_reaction_emoji` | string | no | Return merge requests reacted by the authenticated user by the given emoji ` _([Introduced][ce-14016] in GitLab 10.0)_ |
|
| `my_reaction_emoji` | string | no | Return merge requests reacted by the authenticated user by the given `emoji` _([Introduced][ce-14016] in GitLab 10.0)_ |
|
||||||
|
|
||||||
```json
|
```json
|
||||||
[
|
[
|
||||||
|
@ -123,22 +123,22 @@ GET /projects/:id/merge_requests?my_reaction_emoji=star
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
|
|
||||||
| Attribute | Type | Required | Description |
|
| Attribute | Type | Required | Description |
|
||||||
| --------- | ---- | -------- | ----------- |
|
| ------------------- | -------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------ |
|
||||||
| `id` | integer | yes | The ID of a project |
|
| `id` | integer | yes | The ID of a project |
|
||||||
| `iids[]` | Array[integer] | no | Return the request having the given `iid` |
|
| `iids[]` | Array[integer] | no | Return the request having the given `iid` |
|
||||||
| `state` | string | no | Return all merge requests or just those that are `opened`, `closed`, or `merged`|
|
| `state` | string | no | Return all merge requests or just those that are `opened`, `closed`, or `merged` |
|
||||||
| `order_by`| string | no | Return requests ordered by `created_at` or `updated_at` fields. Default is `created_at` |
|
| `order_by` | string | no | Return requests ordered by `created_at` or `updated_at` fields. Default is `created_at` |
|
||||||
| `sort` | string | no | Return requests sorted in `asc` or `desc` order. Default is `desc` |
|
| `sort` | string | no | Return requests sorted in `asc` or `desc` order. Default is `desc` |
|
||||||
| `milestone` | string | no | Return merge requests for a specific milestone |
|
| `milestone` | string | no | Return merge requests for a specific milestone |
|
||||||
| `view` | string | no | If `simple`, returns the `iid`, URL, title, description, and basic state of merge request |
|
| `view` | string | no | If `simple`, returns the `iid`, URL, title, description, and basic state of merge request |
|
||||||
| `labels` | string | no | Return merge requests matching a comma separated list of labels |
|
| `labels` | string | no | Return merge requests matching a comma separated list of labels |
|
||||||
| `created_after` | datetime | no | Return merge requests created after the given time (inclusive) |
|
| `created_after` | datetime | no | Return merge requests created after the given time (inclusive) |
|
||||||
| `created_before` | datetime | no | Return merge requests created before the given time (inclusive) |
|
| `created_before` | datetime | no | Return merge requests created before the given time (inclusive) |
|
||||||
| `scope` | string | no | Return merge requests for the given scope: `created-by-me`, `assigned-to-me` or `all` _([Introduced][ce-13060] in GitLab 9.5)_ |
|
| `scope` | string | no | Return merge requests for the given scope: `created-by-me`, `assigned-to-me` or `all` _([Introduced][ce-13060] in GitLab 9.5)_ |
|
||||||
| `author_id` | integer | no | Returns merge requests created by the given user `id` _([Introduced][ce-13060] in GitLab 9.5)_ |
|
| `author_id` | integer | no | Returns merge requests created by the given user `id` _([Introduced][ce-13060] in GitLab 9.5)_ |
|
||||||
| `assignee_id` | integer | no | Returns merge requests assigned to the given user `id` _([Introduced][ce-13060] in GitLab 9.5)_ |
|
| `assignee_id` | integer | no | Returns merge requests assigned to the given user `id` _([Introduced][ce-13060] in GitLab 9.5)_ |
|
||||||
| `my_reaction_emoji` | string | no | Return merge requests reacted by the authenticated user by the given emoji ` _([Introduced][ce-14016] in GitLab 10.0)_ |
|
| `my_reaction_emoji` | string | no | Return merge requests reacted by the authenticated user by the given `emoji` _([Introduced][ce-14016] in GitLab 10.0)_ |
|
||||||
|
|
||||||
```json
|
```json
|
||||||
[
|
[
|
||||||
|
@ -1319,3 +1319,4 @@ Example response:
|
||||||
```
|
```
|
||||||
|
|
||||||
[ce-13060]: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/13060
|
[ce-13060]: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/13060
|
||||||
|
[ce-14016]: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/14016
|
||||||
|
|
Loading…
Reference in a new issue