Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Example of JSON response from API?

Started by Jason 5 years ago · 3 replies · 893 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 themetman, 23 hours ago
2 40 17 hours ago
General · by Hanns Mattes, 1 week ago
0 121 1 week ago
General · by Karmalakas, 1 week ago
2 185 1 week ago
General · by Hanns Mattes, 3 weeks ago
0 235 3 weeks ago
General · by Dima, 4 weeks ago
1 211 4 weeks ago