From a71fc4816b821dd7695bf609b6bb424091a2bf40 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Wed, 13 Apr 2011 19:43:13 -0400 Subject: docs --- ext/issues.md | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 ext/issues.md (limited to 'ext/issues.md') diff --git a/ext/issues.md b/ext/issues.md new file mode 100644 index 0000000..83920ff --- /dev/null +++ b/ext/issues.md @@ -0,0 +1,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` -- cgit v1.3-8-gc7d7