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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Example of JSON response from API?

Started by Jason 5 years ago · 3 replies · 505 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 Jerry Hunt, 4 days ago
2 101 17 hours ago
General · by pamtbaau, 22 hours ago
1 68 21 hours ago
General · by Andy Miller, 1 day ago
0 53 1 day ago
General · by Marcel, 12 months ago
6 361 5 days ago
General · by Duc , 6 days ago
3 49 6 days ago