diff --git a/README.md b/README.md index 45554e1..86f9bcf 100644 --- a/README.md +++ b/README.md @@ -126,13 +126,13 @@ Once the runtime is up, let it discover your services by executing: - For macOS: ```shell -curl -X POST http://localhost:9070/endpoints -H 'content-type: application/json' -d '{"uri": "http://host.docker.internal:9080"}' +curl -X POST http://localhost:9070/deployments -H 'content-type: application/json' -d '{"uri": "http://host.docker.internal:9080"}' ``` - For Linux: ```shell -curl -X POST http://localhost:9070/endpoints -H 'content-type: application/json' -d '{"uri": "http://localhost:9080"}' +curl -X POST http://localhost:9070/deployments -H 'content-type: application/json' -d '{"uri": "http://localhost:9080"}' ``` ### Call the Service diff --git a/template/src/app.ts b/template/src/app.ts index 5e0119a..6a69d09 100644 --- a/template/src/app.ts +++ b/template/src/app.ts @@ -37,8 +37,8 @@ restate // // - On macOS: // docker run --name restate_dev --rm -p 8080:8080 -p 9070:9070 -p 9071:9071 docker.io/restatedev/restate:latest -// curl -X POST http://localhost:9070/endpoints -H 'content-type: application/json' -d '{"uri": "http://host.docker.internal:9080"}' +// curl -X POST http://localhost:9070/deployments -H 'content-type: application/json' -d '{"uri": "http://host.docker.internal:9080"}' // // - On Linux: // docker run --name restate_dev --rm --network=host docker.io/restatedev/restate:latest -// curl -X POST http://localhost:9070/endpoints -H 'content-type: application/json' -d '{"uri": "http://localhost:9080"}' +// curl -X POST http://localhost:9070/deployments -H 'content-type: application/json' -d '{"uri": "http://localhost:9080"}' diff --git a/template_grpc/src/app.ts b/template_grpc/src/app.ts index 1652509..bc8925a 100644 --- a/template_grpc/src/app.ts +++ b/template_grpc/src/app.ts @@ -50,8 +50,8 @@ restate // // - On macOS: // docker run --name restate_dev --rm -p 8080:8080 -p 9070:9070 -p 9071:9071 docker.io/restatedev/restate:latest -// curl -X POST http://localhost:9070/endpoints -H 'content-type: application/json' -d '{"uri": "http://host.docker.internal:9080"}' +// curl -X POST http://localhost:9070/deployments -H 'content-type: application/json' -d '{"uri": "http://host.docker.internal:9080"}' // // - On Linux: // docker run --name restate_dev --rm --network=host docker.io/restatedev/restate:latest -// curl -X POST http://localhost:9070/endpoints -H 'content-type: application/json' -d '{"uri": "http://localhost:9080"}' +// curl -X POST http://localhost:9070/deployments -H 'content-type: application/json' -d '{"uri": "http://localhost:9080"}'