Creating an API for postgres database by using postgREST, CURL -Reg #3657
-
Hi, Using the postgREST option, I intend to construct an API for my Postgres database. I produced a configuration file with my server and database details (localhost, port, etc.) and installed postgREST binaries for that purpose. I then began using postgREST, and I was able to observe as seen below: Starting PostgREST 12.2.1 (******)... After postgREST had begun, I installed CURL for web requests, opened a command window, and typed the following :
So kindly understand the environment and hope you drag me out from this issue. Environment
Description of issueAfter installing postgREST and CURL, I encountered difficulties in developing an API for my Postgres database. The error is: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Please ask support questions like this in the "Discussions" section and not create new Issues for them. I moved the issue over to the Q & A discussion section.
The message tells you that you can not access the api without authenticating. You also have a PGRST302 error code, which you can look up here: https://docs.postgrest.org/en/v12/references/errors.html#group-3-jwt This will point you to the right configuration option there. You should also consider finishing the two tutorials we have:
Those deal with exactly those things. |
Beta Was this translation helpful? Give feedback.
Please ask support questions like this in the "Discussions" section and not create new Issues for them. I moved the issue over to the Q & A discussion section.
The message tells you that you can not access the api without authenticating.
You also have a PGRST302 error code, which you can look up here: https://docs.postgrest.org/en/v12/references/errors.html#group-3-jwt
This will point you to the right configuration option there.
You should also consider finishing the two tutorials we have:
Th…