Skip to content
Branch: master
Find file History

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
.vscode
components
Program.cs
README.md
Startup.cs
appsettings.json
dapr.intro.csproj

README.md

RUN:

dapr run --app-id routing --app-port 5000 dotnet run

REST:

curl -X POST http://127.0.0.1:5000/deposit -H "Content-Type: application/json" -d '{ "id": "17", "amount": 12 }'

curl -X POST http://127.0.0.1:5000/withdraw -H "Content-Type: application/json" -d '{ "id": "17", "amount": 10 }'

curl -X GET http://127.0.0.1:5000/17 -H "Content-Type: application/json"

PUB/SUB

dapr publish -t withdraw -p '{"id": "17", "amount": 15 }' dapr publish -t deposit -p '{"id": "17", "amount": 15 }'

curl -X GET http://127.0.0.1:5000/17 -H "Content-Type: application/json"

You can’t perform that action at this time.