From d3ab2b3a18dac141d6634b4868ce0ba28d16bcb3 Mon Sep 17 00:00:00 2001 From: enghwa Date: Mon, 8 Jul 2019 14:16:09 +0800 Subject: [PATCH] update readme --- README.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/README.md b/README.md index 31cd43e..3cbae1e 100644 --- a/README.md +++ b/README.md @@ -30,4 +30,39 @@ npm install npx cdk@0.36.1 bootstrap npx cdk@0.36.1 deploy --require-approval never "*" +``` + +## Test the app: +This is a spring boot CRUD app with RDS (mysql). + +``` +# use httpie to POST to ALB endpoint / api/notes , eg: + +http POST sprin-sprin-????????????.ap-southeast-1.elb.amazonaws.com/api/notes title="title 2" content="sample content" + +# view the list of notes : + +http sprin-sprin-????????????.ap-southeast-1.elb.amazonaws.com/api/notes + + Connection: keep-alive + Content-Type: application/json;charset=UTF-8 + Date: Mon, 08 Jul 2019 06:15:10 GMT + Transfer-Encoding: chunked + + [ + { + "content": "aa", + "createdAt": "2019-07-08T06:10:41.000+0000", + "id": 1, + "title": "title1", + "updatedAt": "2019-07-08T06:10:41.000+0000" + }, + { + "content": "sample content", + "createdAt": "2019-07-08T06:14:28.000+0000", + "id": 2, + "title": "title 2", + "updatedAt": "2019-07-08T06:14:28.000+0000" + } + ] ``` \ No newline at end of file