Commit e28388c9 authored by Marcin Sedlak-Jakubowski's avatar Marcin Sedlak-Jakubowski

Merge branch 'patch-96' into 'master'

Correct format for curl in epic documentation

See merge request gitlab-org/gitlab!29057
parents e7ba0e22 d8af8b00
...@@ -77,6 +77,7 @@ Example response: ...@@ -77,6 +77,7 @@ Example response:
"id": 29, "id": 29,
"iid": 4, "iid": 4,
"group_id": 7, "group_id": 7,
"parent_id": 23,
"title": "Accusamus iste et ullam ratione voluptatem omnis debitis dolor est.", "title": "Accusamus iste et ullam ratione voluptatem omnis debitis dolor est.",
"description": "Molestias dolorem eos vitae expedita impedit necessitatibus quo voluptatum.", "description": "Molestias dolorem eos vitae expedita impedit necessitatibus quo voluptatum.",
"state": "opened", "state": "opened",
...@@ -117,6 +118,7 @@ Example response: ...@@ -117,6 +118,7 @@ Example response:
"id": 50, "id": 50,
"iid": 35, "iid": 35,
"group_id": 17, "group_id": 17,
"parent_id": 19,
"title": "Accusamus iste et ullam ratione voluptatem omnis debitis dolor est.", "title": "Accusamus iste et ullam ratione voluptatem omnis debitis dolor est.",
"description": "Molestias dolorem eos vitae expedita impedit necessitatibus quo voluptatum.", "description": "Molestias dolorem eos vitae expedita impedit necessitatibus quo voluptatum.",
"state": "opened", "state": "opened",
...@@ -245,7 +247,7 @@ POST /groups/:id/epics ...@@ -245,7 +247,7 @@ POST /groups/:id/epics
| `parent_id` | integer/string | no | The id of a parent epic (since 11.11) | | `parent_id` | integer/string | no | The id of a parent epic (since 11.11) |
```shell ```shell
curl --header POST "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/groups/1/epics?title=Epic&description=Epic%20description curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/groups/1/epics?title=Epic&description=Epic%20description
``` ```
Example response: Example response:
...@@ -320,7 +322,7 @@ PUT /groups/:id/epics/:epic_iid ...@@ -320,7 +322,7 @@ PUT /groups/:id/epics/:epic_iid
| `state_event` | string | no | State event for an epic. Set `close` to close the epic and `reopen` to reopen it (since 11.4) | | `state_event` | string | no | State event for an epic. Set `close` to close the epic and `reopen` to reopen it (since 11.4) |
```shell ```shell
curl --header PUT "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/groups/1/epics/5?title=New%20Title curl --request PUT --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/groups/1/epics/5?title=New%20Title
``` ```
Example response: Example response:
...@@ -382,7 +384,7 @@ DELETE /groups/:id/epics/:epic_iid ...@@ -382,7 +384,7 @@ DELETE /groups/:id/epics/:epic_iid
| `epic_iid` | integer/string | yes | The internal ID of the epic. | | `epic_iid` | integer/string | yes | The internal ID of the epic. |
```shell ```shell
curl --header DELETE "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/groups/1/epics/5 curl --request DELETE --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/groups/1/epics/5
``` ```
## Create a todo ## Create a todo
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment