スキーマ
スキーマはstatusオブジェクトに存在するすべてのフィールドを定義しています。
namestring |
The title for the status. 読み取り専用 コンテキスト: |
privateboolean |
Whether posts with this status should be private. 読み取り専用 コンテキスト: |
protectedboolean |
Whether posts with this status should be protected. 読み取り専用 コンテキスト: |
publicboolean |
Whether posts of this status should be shown in the front end of the site. 読み取り専用 コンテキスト: |
queryableboolean |
Whether posts with this status should be publicly-queryable. 読み取り専用 コンテキスト: |
show_in_listboolean |
Whether to include posts in the edit listing for their post type. 読み取り専用 コンテキスト: |
slugstring |
An alphanumeric identifier for the status. 読み取り専用 コンテキスト: |
Example Request
$ curl -X OPTIONS -i http://demo.wp-api.org/wp-json/wp/v2/statuses
Status一覧
引数
context |
Scope under which the request is made; determines fields present in response.
初期値: 次のいずれか: |
定義
GET /wp/v2/statuses
リクエスト例
$ curl http://demo.wp-api.org/wp-json/wp/v2/statuses
Statusを取得する
引数
status |
An alphanumeric identifier for the status. |
context |
Scope under which the request is made; determines fields present in response.
初期値: 次のいずれか: |
定義
GET /wp/v2/statuses/<status>
リクエスト例
$ curl http://demo.wp-api.org/wp-json/wp/v2/statuses/<status>