Skip to content

Commit

Permalink
extend readme
Browse files Browse the repository at this point in the history
  • Loading branch information
nikgraf committed Jan 14, 2017
1 parent eab8ba9 commit 779d2c2
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
27 changes: 25 additions & 2 deletions aws-java-simple-http-endpoint/README.md
Expand Up @@ -17,7 +17,30 @@ It is required to build prior to deploying. You can build the deployment artifac
In order to build using Gradle simply run

```bash
./gradlew build
gradle wrapper # to build the gradle wrapper jar
./gradlew build # to build the application jar
```

The expected result should be similar to:

```bash
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
:compileJava
:processResources
:classes
:jar
:assemble
:buildZip
:compileTestJava UP-TO-DATE
:processTestResources UP-TO-DATE
:testClasses UP-TO-DATE
:test UP-TO-DATE
:check UP-TO-DATE
:build

BUILD SUCCESSFUL

Total time: 8.195 secs
```

### Maven
Expand Down Expand Up @@ -96,7 +119,7 @@ The expected result should be similar to:
"statusCode": 200,
"body": "{\"message\":\"Hello, the current time is Wed Jan 04 23:44:37 UTC 2017\"}",
"headers": {
"X-Powered-By": "AWS Lambda & serverless",
"X-Powered-By": "AWS Lambda & Serverless",
"Content-Type": "application/json"
},
"isBase64Encoded": false
Expand Down
@@ -1,4 +1,4 @@
#Sun Dec 18 20:54:11 CET 2016
#Sat Jan 14 14:33:39 PST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
Expand Down
Expand Up @@ -18,7 +18,7 @@ public ApiGatewayResponse handleRequest(Map<String, Object> input, Context conte
LOG.info("received: " + input);
Response responseBody = new Response("Hello, the current time is " + new Date());
Map<String, String> headers = new HashMap<>();
headers.put("X-Powered-By", "AWS Lambda & serverless");
headers.put("X-Powered-By", "AWS Lambda & Serverless");
headers.put("Content-Type", "application/json");
return ApiGatewayResponse.builder()
.setStatusCode(200)
Expand Down

0 comments on commit 779d2c2

Please sign in to comment.