Mike Lyons
Mike Lyons16mo ago

Hi Convex friends a couple noob

Hi Convex friends, a couple noob questions: - can you implement REST APIs with Convex? (My use case is making an “action set” for the new GPTs functionality) - what do folks on native clients (iOS, Android, windows, macOS) do if they want to use services hosted by Convex? Links to docs/guides greatly appreciated. Thanks!
5 Replies
nipunn
nipunn16mo ago
Hi @Mike Lyons !! You can implement arbitrary REST API handlers with http actions - good for webhooks. https://docs.convex.dev/functions/http-actions But if you're building a react app directly and own the client code, would definitely recommend the fundamental units of query and mutation for accessing data in a traditional CRUD kind of way - with our react hooks useQuery/useMutation On native clients, you can use any of our supported client libraries (eg https://docs.convex.dev/client/react-native or https://docs.convex.dev/client/javascript/node) or directly use the HTTP API https://docs.convex.dev/http-api/
HTTP Actions | Convex Developer Hub
HTTP actions allow you to build an HTTP API right in Convex!
Convex React Native | Convex Developer Hub
How Convex works in a React Native app
Convex HTTP API | Convex Developer Hub
Connecting to Convex directly with HTTP
Mike Lyons
Mike LyonsOP16mo ago
Sick, thanks @nipunn!
Indy
Indy16mo ago
As for native realtime client. We eventually do want to provide libraries for Android and iOS that will likely just wrap: https://docs.rs/convex/latest/convex/
convex - Rust
Convex Client
ian
ian16mo ago
Hi @Mike Lyons!! Long time no see! Would love to catch up and help out / get some feedback if you're evaluating Convex
Mike Lyons
Mike LyonsOP16mo ago
Thanks @ian , right now I'm trying to prototype some wild and crazy things, but went through the tutorial last night and this is wild. Will let you know how it goes and hope things are great with you!

Did you find this page helpful?