OK
POST /materials HTTP/1.1
Host: api
Content-Type: application/json
Accept: */*
Content-Length: 52
{
"filename": "text",
"content": "text",
"type": "COMMON"
}
OK
{
"code": 1,
"message": "text",
"data": {
"id": "text",
"filename": "text"
},
"success": true
}
download
OK
GET /materials/{id} HTTP/1.1
Host: api
Accept: */*
OK
No content
OK
DELETE /materials/{id} HTTP/1.1
Host: api
Accept: */*
OK
{
"code": 1,
"message": "text",
"data": true,
"success": true
}