...
Code Block |
---|
## Docker 이미지로 어플리케이션 실행
[root@workspace-vm sanse-reactive-link-shortener-sample-app]# docker run -d -p 8080:8080 --link redis sooabia/reactor-demo:1.0
4cef1da580aad24a586f307b31a54a202912617d09f7996777b7b2fc56dfe717
[root@workspace-vm sanse-reactive-link-shortener-sample-app]#
## 어플리케이션 호출
[root@workspace-vm sanse-reactive-link-shortener-sample-app]# curl -XPOST http://localhost:8080/link -H "Content-Type: application/json" -d '{"link":"http://wiki.thesanse.com"}'
{"shortenedLink":"http://localhost:8080/gjCiOz"} |