Legendary Entertainment digital API
The digital API from Legendary Entertainment — 6 operation(s) for digital.
The digital API from Legendary Entertainment — 6 operation(s) for digital.
openapi: 3.1.0
info:
title: Legendary Entertainment WordPress REST block-directory digital API
version: wp/v2
description: 'Read-oriented content API exposed by legendary.com: the WordPress REST API (namespace wp/v2) serving Legendary Entertainment news posts, pages, media, categories and tags. Derived by API Evangelist from the live route discovery document at https://www.legendary.com/wp-json/wp/v2 . This is the platform API exposed by the marketing site, NOT a documented first-party Legendary developer program. GET collections are publicly readable without authentication; write operations require WordPress Application Password credentials.'
contact:
name: Legendary Entertainment
url: https://www.legendary.com/about/
servers:
- url: https://www.legendary.com/wp-json/wp/v2
description: Production
tags:
- name: digital
paths:
/digital:
get:
operationId: getDigital
summary: GET /digital
tags:
- digital
parameters:
- name: after
in: query
required: false
schema:
type: string
description: Limit response to posts published after a given ISO8601 compliant date.
- name: before
in: query
required: false
schema:
type: string
description: Limit response to posts published before a given ISO8601 compliant date.
- name: categories
in: query
required: false
schema:
type: object
description: Limit result set to items with specific terms assigned in the categories taxonomy.
- name: categories_exclude
in: query
required: false
schema:
type: object
description: Limit result set to items except those with specific terms assigned in the categories taxonomy.
- name: context
in: query
required: false
schema:
type: string
enum:
- view
- embed
- edit
default: view
description: Scope under which the request is made; determines fields present in response.
- name: exclude
in: query
required: false
schema:
type: array
default: []
description: Ensure result set excludes specific IDs.
- name: grid_filter
in: query
required: false
schema:
type: object
description: Limit result set to items with specific terms assigned in the grid_filter taxonomy.
- name: grid_filter_exclude
in: query
required: false
schema:
type: object
description: Limit result set to items except those with specific terms assigned in the grid_filter taxonomy.
- name: include
in: query
required: false
schema:
type: array
default: []
description: Limit result set to specific IDs.
- name: modified_after
in: query
required: false
schema:
type: string
description: Limit response to posts modified after a given ISO8601 compliant date.
- name: modified_before
in: query
required: false
schema:
type: string
description: Limit response to posts modified before a given ISO8601 compliant date.
- name: offset
in: query
required: false
schema:
type: integer
description: Offset the result set by a specific number of items.
- name: order
in: query
required: false
schema:
type: string
enum:
- asc
- desc
default: desc
description: Order sort attribute ascending or descending.
- name: orderby
in: query
required: false
schema:
type: string
enum:
- author
- date
- id
- include
- modified
- parent
- relevance
- slug
- include_slugs
- title
default: date
description: Sort collection by post attribute.
- name: page
in: query
required: false
schema:
type: integer
default: 1
description: Current page of the collection.
- name: per_page
in: query
required: false
schema:
type: integer
default: 10
description: Maximum number of items to be returned in result set.
- name: search
in: query
required: false
schema:
type: string
description: Limit results to those matching a string.
- name: search_columns
in: query
required: false
schema:
type: array
default: []
description: Array of column names to be searched.
- name: search_semantics
in: query
required: false
schema:
type: string
enum:
- exact
description: How to interpret the search input.
- name: slug
in: query
required: false
schema:
type: array
description: Limit result set to posts with one or more specific slugs.
- name: status
in: query
required: false
schema:
type: array
default: publish
description: Limit result set to posts assigned one or more statuses.
- name: tags
in: query
required: false
schema:
type: object
description: Limit result set to items with specific terms assigned in the tags taxonomy.
- name: tags_exclude
in: query
required: false
schema:
type: object
description: Limit result set to items except those with specific terms assigned in the tags taxonomy.
- name: tax_relation
in: query
required: false
schema:
type: string
enum:
- AND
- OR
description: Limit result set based on relationship between multiple taxonomies.
responses:
'200':
description: Successful response
headers:
X-WP-Total:
description: Total number of records
schema:
type: integer
X-WP-TotalPages:
description: Total number of pages
schema:
type: integer
Link:
description: RFC 8288 pagination links (rel=next/prev)
schema:
type: string
content:
application/json:
schema:
type: object
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
post:
operationId: createDigital
summary: POST /digital
tags:
- digital
security:
- applicationPassword: []
responses:
'201':
description: Successful response
content:
application/json:
schema:
type: object
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
/digital/{id}:
parameters:
- name: id
in: path
required: true
schema:
type: integer
get:
operationId: getDigitalById
summary: GET /digital/{id}
tags:
- digital
parameters:
- name: context
in: query
required: false
schema:
type: string
enum:
- view
- embed
- edit
default: view
description: Scope under which the request is made; determines fields present in response.
- name: password
in: query
required: false
schema:
type: string
description: The password for the post if it is password protected.
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
post:
operationId: createDigitalById
summary: POST /digital/{id}
tags:
- digital
security:
- applicationPassword: []
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
delete:
operationId: deleteDigitalById
summary: DELETE /digital/{id}
tags:
- digital
security:
- applicationPassword: []
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
/digital/{id}/autosaves:
parameters:
- name: id
in: path
required: true
schema:
type: integer
get:
operationId: getDigitalByIdAutosaves
summary: GET /digital/{id}/autosaves
tags:
- digital
parameters:
- name: context
in: query
required: false
schema:
type: string
enum:
- view
- embed
- edit
default: view
description: Scope under which the request is made; determines fields present in response.
- name: parent
in: query
required: false
schema:
type: integer
description: The ID for the parent of the autosave.
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
post:
operationId: createDigitalByIdAutosaves
summary: POST /digital/{id}/autosaves
tags:
- digital
security:
- applicationPassword: []
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
/digital/{parent}/autosaves/{id}:
parameters:
- name: parent
in: path
required: true
schema:
type: integer
- name: id
in: path
required: true
schema:
type: integer
get:
operationId: getDigitalByParentAutosavesById
summary: GET /digital/{parent}/autosaves/{id}
tags:
- digital
parameters:
- name: context
in: query
required: false
schema:
type: string
enum:
- view
- embed
- edit
default: view
description: Scope under which the request is made; determines fields present in response.
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
/digital/{parent}/revisions:
parameters:
- name: parent
in: path
required: true
schema:
type: integer
get:
operationId: getDigitalByParentRevisions
summary: GET /digital/{parent}/revisions
tags:
- digital
parameters:
- name: context
in: query
required: false
schema:
type: string
enum:
- view
- embed
- edit
default: view
description: Scope under which the request is made; determines fields present in response.
- name: exclude
in: query
required: false
schema:
type: array
default: []
description: Ensure result set excludes specific IDs.
- name: include
in: query
required: false
schema:
type: array
default: []
description: Limit result set to specific IDs.
- name: offset
in: query
required: false
schema:
type: integer
description: Offset the result set by a specific number of items.
- name: order
in: query
required: false
schema:
type: string
enum:
- asc
- desc
default: desc
description: Order sort attribute ascending or descending.
- name: orderby
in: query
required: false
schema:
type: string
enum:
- date
- id
- include
- relevance
- slug
- include_slugs
- title
default: date
description: Sort collection by object attribute.
- name: page
in: query
required: false
schema:
type: integer
default: 1
description: Current page of the collection.
- name: per_page
in: query
required: false
schema:
type: integer
description: Maximum number of items to be returned in result set.
- name: search
in: query
required: false
schema:
type: string
description: Limit results to those matching a string.
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
/digital/{parent}/revisions/{id}:
parameters:
- name: parent
in: path
required: true
schema:
type: integer
- name: id
in: path
required: true
schema:
type: integer
get:
operationId: getDigitalByParentRevisionsById
summary: GET /digital/{parent}/revisions/{id}
tags:
- digital
parameters:
- name: context
in: query
required: false
schema:
type: string
enum:
- view
- embed
- edit
default: view
description: Scope under which the request is made; determines fields present in response.
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
delete:
operationId: deleteDigitalByParentRevisionsById
summary: DELETE /digital/{parent}/revisions/{id}
tags:
- digital
security:
- applicationPassword: []
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
components:
schemas:
Error:
type: object
description: WordPress REST API error envelope (not RFC 9457)
properties:
code:
type: string
message:
type: string
data:
type: object
properties:
status:
type: integer
responses:
Error:
description: WordPress REST error envelope
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
code: rest_post_invalid_id
message: Invalid post ID.
data:
status: 404
securitySchemes:
applicationPassword:
type: http
scheme: basic
description: WordPress Application Passwords, advertised by the site at https://www.legendary.com/wp-admin/authorize-application.php