Easily define just the right data for your InertiaJS views (or anywhere else you want to, uh, flexibly present).
I don’t know enough about writing APIs to tell you if this would work, but we use https://github.com/AdditionApps/flexible-presenter very successfully. It has ‘preset’s which are subsets of the available fields - so where I’m displaying just user name and need their id for routing i can call the presenter with ->preset(‘listing’) to only get those fields.
🚀 Apollo/GraphQL integration for VueJS
Cool, if you do go with graphql, I'd recommend vue-apollo on the client end. Combine with @vue/apollo-composable and graphql-codegen and it feels like sorcery.
Managed Cloud Hosting Platform. Deploy PHP applications on Cloudways web hosting platform to get high uptime and optimized performance. Use the BFCM promo "BFCM2021" to get 40% FLAT discount for FOUR months straight.
A specification for building JSON APIs
You can either do the "per-view" style you mentioned, or you can let the client tell the API what it wants. I'd check out the JSON:API spec for inspiration.
Nuxt 3 + Apollo
1 project | reddit.com/r/Nuxt | 30 Nov 2021
Fullstack with vue CRUD frontend and graphql backend... struggling with frontend state ideas
1 project | reddit.com/r/vuejs | 23 Aug 2021
Why is graphql-tag needed for Vue Apollo?
1 project | reddit.com/r/vuejs | 28 Jun 2021
Java Spring Boot DTO Mapping in GraphQL
1 project | reddit.com/r/graphql | 20 Jan 2022
gQuery 101 – A Svelte Kit Focused GraphQL Library
1 project | reddit.com/r/sveltejs | 19 Jan 2022