Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Example of JSON response from API?

Started by Jason 5 years ago · 3 replies · 750 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 Andy Miller, 3 days ago
0 63 3 days ago
General · by lynbor, 4 weeks ago
3 409 1 week ago
General · by lynbor, 2 weeks ago
7 518 1 week ago
General · by Harry, 1 week ago
0 141 1 week ago
General · by Old Man Umby, 4 weeks ago
2 287 3 weeks ago