mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-04-28 11:36:21 +08:00
Ticket API DOC
This commit is contained in:
52
DOC/API/ticket.md
Normal file
52
DOC/API/ticket.md
Normal 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.
|
||||
Reference in New Issue
Block a user