-
Notifications
You must be signed in to change notification settings - Fork 6
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
Java SDK docs #172
Java SDK docs #172
Conversation
❌ Deploy Preview for docsrestatedev failed.
|
Deploying with Cloudflare Pages
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thought I have is that maybe in the long term we might need some "SDK specific" pages, to add content specific to an sdk.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some minor comments. LGTM
## Discovery of services | ||
|
||
To let Restate discover the services, execute the following curl command, | ||
pointed at the Restate runtime and with the Lambda function endpoint as the URI in the data field. | ||
|
||
|
||
```shell | ||
curl -X POST http://<your-restate-runtime-endpoint>:9070/endpoints -H 'content-type: application/json' -d '{"uri": "https://<lambda-function-endpoint>/default/<my-service>"}' | ||
``` | ||
|
||
If your Lambda function requires authentication via an API key, | ||
then you can add this API key to the discovery request to the Restate runtime, as follows: | ||
|
||
```shell | ||
curl -X POST http://<your-restate-runtime-endpoint>:9070/endpoints -H 'content-type: application/json' -d '{"uri": "https://<lambda-function-endpoint>/default/<my-service>","additional_headers": {"x-api-key": "someapikey"} }' | ||
``` | ||
|
||
Here, we added the API key as an additional header to the JSON data of the request. | ||
Replace `someapikey` by your API key. | ||
The Restate runtime will use this API key for all subsequent requests to the Lambda function. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unrelated to java: With the new lambda support (in runtime) this is different now, as you register using ARNs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will rebase and fix it
…e communication sectino
Co-authored-by: Francesco Guardiani <[email protected]>
Co-authored-by: Francesco Guardiani <[email protected]>
1aeda63
to
23122b7
Compare
Documentation for Java SDK