Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

CMS page coverage #31

Closed
Closed
@paliarush

Description

@paliarush

As a Magento Developer, I want to query for CMS page content using the GraphQL API so that I can build basic ecommerce storefronts using only GraphQL

Use cases:

  • Developer can query GraphQL for CMS page content and get back all necessary data to render the page on storefront or in 3rd party applications.

Acceptance Criteria

  • Only enabled pages will be returned by the API
  • Store view context is passed in the HTTP header and only pages relevant to given context will be returned
  • Staging versions of the page cannot be queried - only the currently active pages are returned
  • [DRAFT] API returns the following info
    • url or url key
    • layout
    • layout update XML?
    • theme?
    • page title
    • content heading
    • rendered (with no Magento-specific directives) or un-rendered page content, depending on configuration
    • meta title, keywords, description
    • parent page(s)

Changes should be covered with web API functional tests. See \Magento\GraphQl\Catalog\ProductViewTest::testQueryAllFieldsSimpleProduct as an example.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions