restatedev / examples

Restate examples
https://restate.dev
MIT License
37 stars 8 forks source link

Rename /endpoints to /deployments in curl template commands #119

Closed igalshilman closed 5 months ago

igalshilman commented 6 months ago

Some of our templates/ have inline commands to copy and they are out of sync. For example in the typescript template there is an inline comment that says:

/ To launch Restate and register this service (if you don't have Restate running already)
//
//  - 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"}'
//
//  - 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"}'

Pasting these commands doesn't do anything, because the /endpoints was renamed to /deployments.

slinkydeveloper commented 5 months ago

Can't find outdated examples anymore. I'm gonna close this.