/page-as-data

Grav plugin that adds support for json xml and yaml response formats (updated to version 1.7.41.1)

Primary LanguagePHPMIT LicenseMIT

Grav Pages as Data

The Grav Pages as Data for Grav provides a very basic way for APIs to return data from grav as json xml or yml.

Installation

Download and unpack a zip (or clone this repository) into the user/plugins directory of your project

Usage

Try to load any page in Grav then add one of the following: ?return-as=json ?return-as=xml ?return-as=yml