Is it possible to fetch the underlying (structural) JSON for any given collections in a space?
I’d like to write a small tool that takes a space endpoint and API key and then generates TypeScript interfaces for all the collection data that is available.
Example:
Collection: BlogPosts
- field title: Text (req)
- field content: WYSIWYG
- ...
// Generated TypeScript interface
export interface BlogPost {
title: string
content?: string
published: boolean
...
}
I’d be happy to share the results with the community when done.