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

Replace all curl commands using the --json parameter #31

Open
slinkydeveloper opened this issue Jun 2, 2023 · 3 comments
Open

Replace all curl commands using the --json parameter #31

slinkydeveloper opened this issue Jun 2, 2023 · 3 comments

Comments

@slinkydeveloper
Copy link
Contributor

curl -X POST http://<your-restate-runtime-endpoint>:8081/endpoint/discover -H 'content-type: application/json' -d '{"uri": "https://<lambda-function-endpoint>/default/<my-service>"}'

vs

curl http://<your-restate-runtime-endpoint>:8081/endpoint/discover --json '{"uri": "https://<lambda-function-endpoint>/default/<my-service>"}'

This reads nicer

@jackkleeman
Copy link
Contributor

I agree but some default curl installs seem too outdated to have it? @gvdongen said it doesn't work on her machine

@gvdongen
Copy link
Contributor

gvdongen commented Jun 21, 2023

I have curl version 7.81.0. Which seems to be the latest version for ubuntu 22.
Executing sudo apt install curl prints curl is already the newest version (7.81.0-1ubuntu1.10).

@slinkydeveloper
Copy link
Contributor Author

!10018 ➜ curl --version ~
curl 8.0.1 (x86_64-redhat-linux-gnu) libcurl/8.0.1 OpenSSL/3.0.9 zlib/1.2.13 brotli/1.0.9 libidn2/2.3.4 libpsl/0.21.2 (+libidn2/2.3.4) libssh/0.10.5/openssl/zlib nghttp2/1.52.0

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

3 participants