aboutsummaryrefslogtreecommitdiffstats
path: root/ext/issues.md
blob: 83920ff191aba768af5114d4ee8b61e4ce4ab2e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Issues API

## List issues for this Repository

### GET `/repos/:user/:repo/issues.json`

* `?milestone` = (Fixnum)
* `?sort` = (String)
* `?direction` = (String)
* `?state` = open, closed, default: open
* `?assignee` = (String)
* `?mentioned` = (String)
* `?labels` = (String)


## Create an Issue

### POST `/repos/:user/:repo/issues.json`

### Input

    {
      title: String,
      body: String,
      assignee: String,
      milestone: Fixnum,
    }

## Get a single Issue

### GET `/repos/:user/:repo/issues/:id.json`

## Edit an Issue

### PUT `/repos/:user/:repo/issues/:id.json`

### Input

    {
      title: String,
      body: String,
      assignee: String,
      milestone: Fixnum,
    }

## Delete an Issue

### DELETE `/repos/:user/:repo/issues/:id.json`