Schema modes

Define visible data

Editing the schema mode for a resource type lets you define not just which fields are present in a response, but also the name of those attributes. Enabling a field gives the option to rename it. Any changes are immediately present in the response.

Additional schema modes

Every resource has a url and a default schema mode. Pinging that resource's url will return the json defined by the schema.

The full resource may not always be desirable however. For example, on an article you may wish to display all the content when viewing the page, but there may be other displays of this resource where you only want to display certain data. For example, if you wanted to create a display of "recent articles" on another resource type in either a Collection field or through a reference field, you might add just the title, date, and a summary. On an author page, you could list articles written by that author, so you might exclude the author field so it's not repetitive.

Schema modes and the fields you expose should map directly to any components you develop in your Front-end application