Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
GravityView 2.0 rolls out a new simple but powerful REST API that allows read-only access to Views and Entries.
There are 4 endpoints in the
Returns a list of all the views available to the current user along with the needed fields to render their layouts and some additional information. Form/View administrators can access the connected form, View settings, etc.
/views but for one specific View.
Returns all the entries under the select View. Available in
.html format (template used will be the current View template, but can be overridden as needed under a REST context). Only directory-mode entry fields will be included. Extra fields can be added via the
The structure returned is quite simple - a key-value object with ID -> value.
The same as
entries.json, but only single-mode entry fields will be included. The same filter
gravityview/rest/entry/fields can be used to alter this behavior.
.html format instead of
.json will return HTML code instead. Useful for lazy-loading pagination, etc.