Jamal
Jamal15mo ago

REST API

Will it ever be possible to use convex as a rest api. Right now it seems like convex can only really be used with its drivers but what if i wanted to use it in flutter or in a java program? Would that be possible?
8 Replies
jamwt
jamwt15mo ago
Yeah! You can expose a rest api with HTTP actions.
jamwt
jamwt15mo ago
HTTP Actions | Convex Developer Hub
HTTP actions allow you to build an HTTP API right in Convex!
Jamal
JamalOP15mo ago
well i meant more like the clients like https://docs.convex.dev/client/python python and rust
Python | Convex Developer Hub
See the Python Quickstart and the
Jamal
JamalOP15mo ago
could i use convex from other languages over http or is it not possible atm?
erquhart
erquhart15mo ago
If you set up a rest api with HTTP actions, it's a literal rest api accessible via http - you can hit it with curl if you like.
Jamal
JamalOP15mo ago
okay thanks
Indy
Indy15mo ago
This isn't super well documented but you can technically call your Convex functions directly over http: https://docs.convex.dev/http-api/#functions-api
Convex HTTP API | Convex Developer Hub
Connecting to Convex directly with HTTP
erquhart
erquhart15mo ago
We need a TIL emoji

Did you find this page helpful?