Updating README.md
This commit is contained in:
@@ -57,7 +57,7 @@ you should now be able to place your order by calling the following `curl` comma
|
|||||||
|
|
||||||
```shell
|
```shell
|
||||||
# assuming your app is listening on 8080
|
# assuming your app is listening on 8080
|
||||||
ORDER_UUID=$(curl --silent -H 'Content-Type: application/json' -d "{\"itemName\":\"book\"}" http://localhost:8080/order | jq -r '.orderUuid') && for i in `seq 1 15`; do echo $(curl --silent "http://localhost:8080/order/status/"$ORDER_UUID); sleep 1; done;
|
ORDER_UUID=$(curl --silent -H 'Content-Type: application/json' -d "{\"itemName\":\"book\"}" http://localhost:8080/order | jq -r '.orderUuid') && for i in `seq 1 15`; do sleep 1; echo $(curl --silent "http://localhost:8080/order/status/"$ORDER_UUID); done;
|
||||||
```
|
```
|
||||||
|
|
||||||
Note: make sure you have already installed the `jq`
|
Note: make sure you have already installed the `jq`
|
||||||
@@ -96,7 +96,7 @@ java -Dserver.port=8082 -jar target/scs-100-2-0.0.1-SNAPSHOT.jar
|
|||||||
_Then run our curl call command again (same as the earlier one)_
|
_Then run our curl call command again (same as the earlier one)_
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
ORDER_UUID=$(curl --silent -H 'Content-Type: application/json' -d "{\"itemName\":\"book\"}" http://localhost:8080/order | jq -r '.orderUuid') && for i in `seq 1 15`; do echo $(curl --silent "http://localhost:8080/order/status/"$ORDER_UUID); sleep 1; done;
|
ORDER_UUID=$(curl --silent -H 'Content-Type: application/json' -d "{\"itemName\":\"book\"}" http://localhost:8080/order | jq -r '.orderUuid') && for i in `seq 1 15`; do sleep 1; echo $(curl --silent "http://localhost:8080/order/status/"$ORDER_UUID); done;
|
||||||
```
|
```
|
||||||
|
|
||||||

|

|
||||||
|
|||||||
@@ -75,12 +75,6 @@ public class OrderService implements OrderTopology {
|
|||||||
setDefaultTopic(orderTopic);
|
setDefaultTopic(orderTopic);
|
||||||
sendDefault(order.getOrderUuid(), order);
|
sendDefault(order.getOrderUuid(), order);
|
||||||
}};
|
}};
|
||||||
try {
|
|
||||||
//just a dummy delay
|
|
||||||
Thread.sleep(100);
|
|
||||||
} catch (InterruptedException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
return order;
|
return order;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user