Ticket API DOC

This commit is contained in:
jysperm
2014-03-11 05:27:55 +08:00
parent 9f4f81d10e
commit b61c7bbbb3
2 changed files with 56 additions and 1 deletions

52
DOC/API/ticket.md Normal file
View File

@@ -0,0 +1,52 @@
## Ticket API
### POST /ticket/create
Request:
{
"title": "Ticket Title",
"content": "Ticket Content(Markdown)",
"type": "linux",
// only for admin group user
"members": [
"jysperm", "jysperm@gmail.com"
]
}
Response:
{
"id": "525284cc2cebb6d0008b4567"
}
### POST /ticket/reply
Request:
{
"id": "525284cc2cebb6d0008b4567"
"reply_to": "525284cc2cebb6d0008b4567",
"content": "Reply Content(Markdown)"
}
Response:
{
"id": "525284cc2cebb6d0008b4567"
}
### POST /ticket/update
Request:
{
"id": "525284cc2cebb6d0008b4567",
// optional
"type": "linux",
// optional
"status": "closed"
}
No Response.