by kdunglas · 4y ago · 0 comments
1. You design your data model as a set of PHP classes, or you generate the class from any RDF vocabulary such as Schema.org
2. API Platform uses the classes to expose a JSON-LD API with with all the typical features (sorting, filtering, pagination…)
3. You use the provided "smart clients" to build a dynamic admin interface or to scaffold Next, Nuxt or React Native apps (these tools rely on the Hydra API description vocabulary, and work with any Hydra-enabled API)
In addition to RDF/JSON-LD/Hydra, API Platform also supports ActivityPub.
Great idea by the way! had to the pleasure of working with api platform in some Symfony applications in a past gig. I can vouch its easy enough to use, but the GraphQL integration (at least at that time) was really slow. I have not found PHP to be the ideal runtime for GraphQL