Skip to content

Commit ac986c0

Browse files
jogepdeki
authored andcommitted
Fix minor adjustments and typos README.md and template.yml
1 parent 9553bb2 commit ac986c0

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

samples/struts2/pet-store/README.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,22 @@ Once the deployment is completed, the SAM CLI will print out the stack's outputs
2626

2727
```
2828
...
29-
---------------------------------------------------------------------------------------------------------
30-
OutputKey-Description OutputValue
31-
---------------------------------------------------------------------------------------------------------
32-
PetStoreApi - URL for application https://xxxxxxxxxx.execute-api.us-west-2.amazonaws.com/pets
33-
---------------------------------------------------------------------------------------------------------
29+
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
30+
Outputs
31+
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
32+
Key Struts2PetStoreApi
33+
Description URL for application
34+
Value https://n60c1ycwa2.execute-api.eu-central-1.amazonaws.com/pets
35+
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
36+
```
37+
## Test
3438

35-
$ curl https://xxxxxxxxxx.execute-api.us-west-2.amazonaws.com/pets
39+
### JSON Request:
40+
```
41+
$ curl https://xxxxxxxxxx.execute-api.us-west-2.amazonaws.com/pets.json
42+
```
43+
44+
### XML Request
45+
```
46+
$ curl https://xxxxxxxxxx.execute-api.us-west-2.amazonaws.com/pets.xml
3647
```

samples/struts2/pet-store/template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Resources:
2525
PayloadFormatVersion: '1.0'
2626

2727
Outputs:
28-
SpringPetStoreApi:
28+
Struts2PetStoreApi:
2929
Description: URL for application
3030
Value: !Sub 'https://${ServerlessHttpApi}.execute-api.${AWS::Region}.amazonaws.com/pets'
3131
Export:

0 commit comments

Comments
 (0)