supabase-community / postgrest-go

Isomorphic Go client for PostgREST. (Now Updating)
https://supabase.io
Apache License 2.0
170 stars 27 forks source link

Supabase URL needs `/rest/v1` appended #28

Closed mrcampbell closed 1 year ago

mrcampbell commented 2 years ago

In the README, the docs say to put in localhost:3000, but if calling supabase itself, if you put in the API URL as it is in Supabase, you get a () no Route matched with those values error.

I had to update my URL to https://<database id>.supabase.co/rest/v1 and it worked.

Could we update the docs? Or is there a fix under the hood we'd want to make? I'm up to make either, but wanted to run it by you all first!

yusufpapurcu commented 1 year ago

We should do this in docs. Thanks for raising that 🙌

drev74 commented 1 year ago

@mrcampbell Thanks for the fix. I encountered this issue in a dependent project. @yusufpapurcu Pls fix the docs

mrcampbell commented 1 year ago

I can pick this up! Sorry I forgot about it!

muratmirgun commented 1 year ago

Happy Hacking @mrcampbell

mantism commented 1 year ago

@muratmirgun @mrcampbell ran into this issue yesterday, since this has been open for a while, and if there's no PR in progress can I assign this to myself and propose a README change to include this and maybe some QueryBuilder examples?

tranhoangvuit commented 1 year ago

We have updated the README to include the rest/v1.