スキーマ

スキーマはposts-revisionオブジェクトに存在するすべてのフィールドを定義しています。

author
integer

The id for the author of the object.

コンテキスト: view

date
string, datetime (ISO8601)

The date the object was published.

コンテキスト: view

date_gmt
string, datetime (ISO8601)

The date the object was published, as GMT.

コンテキスト: view

guid
string

GUID for the object, as it exists in the database.

コンテキスト: view

id
integer

Unique identifier for the object.

コンテキスト: view

modified
string, datetime (ISO8601)

The date the object was last modified.

コンテキスト: view

modified_gmt
string, datetime (ISO8601)

The date the object was last modified, as GMT.

コンテキスト: view

parent
integer

The id for the parent of the object.

コンテキスト: view

slug
string

An alphanumeric identifier for the object unique to its type.

コンテキスト: view

title
string

Title for the object, as it exists in the database.

コンテキスト: view

content
string

Content for the object, as it exists in the database.

コンテキスト: view

excerpt
string

Excerpt for the object, as it exists in the database.

コンテキスト: view

Example Request

$ curl -X OPTIONS -i http://demo.wp-api.org/wp-json

Post Revision一覧

引数

context

Scope under which the request is made; determines fields present in response.

初期値: view

次のいずれか: view

定義

GET /wp/v2/posts/<parent_id>/revisions

リクエスト例

$ curl http://demo.wp-api.org/wp-json/wp/v2/posts/<parent_id>/revisions

Post Revisionを取得する

引数

context

Scope under which the request is made; determines fields present in response.

初期値: view

次のいずれか: view

定義

GET /wp/v2/posts/<parent_id>/revisions/<id>

リクエスト例

$ curl http://demo.wp-api.org/wp-json/wp/v2/posts/<parent_id>/revisions/<id>

Post Revisionを削除

このエンドポイントには引数がありません。

定義

DELETE /wp/v2/posts/<parent_id>/revisions/<id>

リクエスト例

$ curl -X DELETE http://demo.wp-api.org/wp-json/wp/v2/posts/<parent_id>/revisions/<id>