Skip to content

content-api-source-block 5.14.2-arc-themes-release-version-2.0.3.4644

Install from the command line:
Learn more about npm packages
$ npm install @wpmedia/content-api-source-block@5.14.2-arc-themes-release-version-2.0.3.4644
Install via package.json:
"@wpmedia/content-api-source-block": "5.14.2-arc-themes-release-version-2.0.3.4644"

About this version

@wpmedia/content-api-source-block

Content source block for Content API queries, used for retrieving stories from the content API. Please provide a 1-2 sentence description of what the block is and what it does.

Acceptance Criteria

  • Add AC relevant to the block

Endpoint

  • Add the endpoint that this content source is hitting

ANS Schema

The structure of the returned data will be that of an ANS story, an example of which can be found here.

Configurable Params

Param Type Description
website_url text The canonical URL path for the content requested from the Content API. This could be a story URL for a story in Composer or a gallery URL from Photo Center. ex. /arts/2020/01/17/this-is-a-story-from-composer/

TTL

  • 300

Additional Considerations

This is optional. Please add an additional context that would be important to know in order to use this block.