Draft Detail
- Endpoint Path:
/api/fresns/v1/editor/{type}/draft/{did}
- Method:
GET
- Request:
Rest
+Query
Headers Optional Parameter
Key | Public Mode (Required) | Private Mode (Required) |
---|---|---|
X-Fresns-Aid | required | required |
X-Fresns-Aid-Token | required | required |
X-Fresns-Uid | required | required |
X-Fresns-Uid-Token | required | required |
Path Variables
Key | Type | Required | Description |
---|---|---|---|
type | String | required | post or comment |
did | String | required | Draft ID |
Query Params
Key | Type | Required | Description |
---|---|---|---|
filterGroupType | String | optional | whitelist only returns key-value pairs for the given key namesblacklist removes specified key-value pairs from the returned dataApplies only to the detail.group parameter in the returned result |
filterGroupKeys | String | optional | Multiple separated by English commas, supports "dot notation" for multi-dimensional arrays |
filterGeotagType | String | optional | whitelist only returns key-value pairs for the given key namesblacklist removes specified key-value pairs from the returned dataApplies only to the detail.geotag parameter in the returned result |
filterGeotagKeys | String | optional | Multiple separated by English commas, supports "dot notation" for multi-dimensional arrays |
Return
json
{
"code": 0,
"message": "ok",
"data": {
"detail": {
// Common Data Structure -> Draft Info
},
"controls": {
"isEditDraft": "Boolean / Whether it is an editable draft",
"editableStatus": "Boolean / Whether it can be edited",
"editableTime": "String / Remaining editable time, for example 03:00 means 3 minutes left",
"deadlineTime": "String / The specific date and time of the editable deadline, for example 2022-07-01 15:05:00"
}
}
}