BizKitHub
DokumentáciaPrieskumník APIPost/api/v1/post/history/version
getPostVerejné API v1

/api/v1/post/history/version

Returns one specific revision in full, including the HTML content snapshot (body is loaded from blob storage on demand). Use this when an external consumer needs to render a historical version of a post body or compute a diff against another version.

postgetApiV1PostHistoryVersion

Parametre

2 v query

Parametre v query

· 2
apiKeystringPovinné

Your BizKitHub API key (passed as GET parameter).

Key format: A 32-character string matching: ^(PROD|DEV_|ROOT)[A-Za-z0-9]{28}$
Prefixes: PROD (production key), DEV_ (individual developer), ROOT (system key with no limits). Learn more

PríkladPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
idstringPovinné

Version handle returned by /api/v1/post/history.

PríkladvErSiOnHaNdLe123

Schéma odpovede

1 zdokumentovaný stavový kód

200Úspech
object | object
Jedna z 2 možností:
Variant 1
idstringPovinné

Version handle (echo).

postIdstringPovinné

External id of the parent post.

localestringPovinné

Locale code of this revision.

insertedDateDate | string | string | numberPovinné
Jedna z 4 možností:
Variant 1
Date
Variant 2
stringdate-time
Variant 3
stringdate
Variant 4
number
titlestringPovinné
contentstringPovinné

Full HTML content snapshot at this revision.

contentSizenumberPovinné
commitMessagestring | nullPovinné
authorobjectPovinné
idstring | nullPovinné
namestringPovinné
Variant 2
state"error"Povinné
messagestringPovinné
code"200"Povinné
hintstring | nullPovinné

Ukážka odpovede

application/json
{
  "id": "example_id",
  "postId": "example_postId",
  "locale": "example_locale",
  "title": "example_title",
  "content": "example_content",
  "contentSize": 0,
  "author": {
    "name": "example_name"
  }
}

Ukážka požiadavky

GET /api/v1/post/history/version

get
curl -X GET "https://api.bizkithub.com/api/v1/post/history/version?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE&id=vErSiOnHaNdLe123" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Potrebujete API kľúč?

Všetky verejné endpointy BizKitHub API sa overujú API kľúčom.

Získať API kľúč