Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create API Specific Commands from PostgREST #235

Open
cboecking opened this issue Jan 9, 2024 · 0 comments
Open

Create API Specific Commands from PostgREST #235

cboecking opened this issue Jan 9, 2024 · 0 comments

Comments

@cboecking
Copy link

Hi Daniel, thank you for all that you have done with this project!

I am having difficulty creating API specific commands (https://rest.sh/#/guide?id=api-specific-commands) from a https://PostgREST.org endpoint. I believe I know why; however, I just wanted to confirm my details and get your advice:

  • I want to be able to use rest.sh with postgREST (which I love!!)
  • I am getting an error (see below(
  • I believe the error is because postgREST publishes a "swagger":"2.0" openapi description (which you clearly do not support)
  • Here is an example endpoint I created to help communicate with you:

I will be going to the postgREST team to help support them to update the tool to work with rest.sh. Please offer any thoughts and advice as you deem appropriate.

Here is the error:
rest-sh-01 /usr/local/bin🔒
❯ ./restish api configure jelly http://3.92.228.30:3000/
Setting up a default profile
? Select option for profile default Finished with profile
? Select option Save and exit

rest-sh-01 /usr/local/bin🔒 took 8s
❯ ./restish jelly --help
panic: could not detect API type: http://3.92.228.30:3000/

goroutine 1 [running]:
github.com/danielgtaylor/restish/cli.Run()
/home/runner/work/restish/restish/cli/cli.go:822 +0xb76
main.main()
/home/runner/work/restish/restish/main.go:40 +0x23a

Thank you for your time and consideration! Chuck Boecking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant