Skip to content
Grav 2.0 is officially stable. Read the announcement →
General

Example of JSON response from API?

Started by Jason 5 years ago · 3 replies · 627 views
5 years ago

Would anyone be willing to share what the API response looks like for a relatively complex site? Custom fields, pages field, etc? I'd like to understand what the JSON looks like to determine if it meets my needs. Thanks!

5 years ago

Which API are you talking about? I'm not quite sure how this relates to Grav

5 years ago

Grav has a built in API, correct? I'd like to understand what the response looks like when accessing a page with custom fields, etc. with the API.

5 years ago

Are you referring to this?
That's not an API you can make cURL (or whatever) requests to per se (to my knowledge).
I think you'd need to create a plugin to be able to make requests and get JSON responses.

Suggested topics

Topic Participants Replies Views Activity
General · by ready-4-IT, 5 months ago
1 472 8 hours ago
General · by jean-louis67, 3 weeks ago
2 329 3 weeks ago
General · by Andy Miller, 4 weeks ago
0 325 4 weeks ago
General · by Veehem, 4 weeks ago
0 273 4 weeks ago
General · by milkboy, 4 weeks ago
0 276 4 weeks ago