You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 19, 2019. It is now read-only.
As a developer I want be able to add different response format for content fields in product, CMS, and Category API. Currently the API returns simple type (string), but in the future we may want to return HTML and/or JSON for more convenient processing by web apps.
Acceptance Criteria
Modify all fields of type textarea in Products GraphQL API to return an object instead of simple type so later data can be extended and retrieved in JSON format.
Add a new attribute named format within each object, with two possible values (for now): html and json (potentially to be expanded later)
By default complex object contains only string format, property value is html
It is not necessary to modify the responses to return json values in the scope of this story
type ProductInterface {
...
name: ComplexTextValue
...
}
type ComplexTextValue {
html: String!
# this list can be expanded later, like adding json format
}
The text was updated successfully, but these errors were encountered:
We need to do this for all EAV attributes of type textarea.
misha-kotov
changed the title
Enable Product text fields to contain WYSIWYG/Pagebuilder content (as complex object)
Enable text fields to contain WYSIWYG/Pagebuilder content (as complex object)
Sep 4, 2018
misha-kotov
changed the title
Enable text fields to contain WYSIWYG/Pagebuilder content (as complex object)
Enable GraphQL text fields to contain WYSIWYG/Pagebuilder content (as complex object)
Sep 4, 2018
Uh oh!
There was an error while loading. Please reload this page.
As a developer I want be able to add different response format for content fields in product, CMS, and Category API. Currently the API returns simple type (string), but in the future we may want to return HTML and/or JSON for more convenient processing by web apps.
Acceptance Criteria
format
within each object, with two possible values (for now):html
andjson
(potentially to be expanded later)html
Example
Before
After
The text was updated successfully, but these errors were encountered: