BearStudio / start-ui-native

🚀 Start UI [native] is an opinionated UI starter with ⚛️ React Native, 🌿 Ficus UI, ⚛️ Zodios & 🐜 Formiz — From the 🐻 BearStudio Team
MIT License
133 stars 15 forks source link

Integrate start ui native api v2 #88

Closed omar-bear closed 6 months ago

omar-bear commented 6 months ago

Description

integration of start v2 api

https://github.com/BearStudio/start-ui-native/assets/80390318/a9ddc429-c413-4107-9e41-dbd3d3df7e53

github-actions[bot] commented 6 months ago

🚀 Expo preview is ready!

Learn more about 𝝠 Expo Github Action

DecampsRenan commented 6 months ago

I think we could go further, by using something like zodios to build the rest client using start-ui-web open-api file

We can build the api definition thanks to https://github.com/astahmer/openapi-zod-client, by using the https://start-ui-v2-6c5z7eyq2-bearstudio.vercel.app/api/openapi.json endpoint to build the client

Downsides: not tanstack query v5

We need to see how to integrate something like that, so the only source of truth for the api definition will be start-ui-web