CodingWithJamal
CodingWithJamal12mo 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
jamwt12mo ago
Yeah! You can expose a rest api with HTTP actions.
jamwt
jamwt12mo ago
HTTP Actions | Convex Developer Hub
HTTP actions allow you to build an HTTP API right in Convex!
CodingWithJamal
CodingWithJamalOP12mo 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
CodingWithJamal
CodingWithJamalOP12mo ago
could i use convex from other languages over http or is it not possible atm?
erquhart
erquhart12mo 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.
CodingWithJamal
CodingWithJamalOP12mo ago
okay thanks
Indy
Indy12mo 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
erquhart12mo ago
We need a TIL emoji

Did you find this page helpful?