Skip to content

Commit e1ded2a

Browse files
committed
CCM-8585: use post in curl commands
1 parent 7b418e2 commit e1ded2a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lambdas/backend-api/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ curl --location 'https://<apig_id>.execute-api.eu-west-2.amazonaws.com/main/v1/t
3333
Will update a template
3434

3535
```bash
36-
curl --location 'https://<apig_id>.execute-api.eu-west-2.amazonaws.com/main/v1/template/<string>' \
36+
curl -X POST --location 'https://<apig_id>.execute-api.eu-west-2.amazonaws.com/main/v1/template/<string>' \
3737
--header 'Content-Type: application/json' \
3838
--header 'Accept: application/json' \
3939
--header 'Authorization: ••••••' \
@@ -61,7 +61,7 @@ curl --location 'https://<apig_id>.execute-api.eu-west-2.amazonaws.com/main/v1/t
6161
Will create a single template.
6262

6363
```bash
64-
curl --location 'https://<apig_id>.execute-api.eu-west-2.amazonaws.com/main/v1/template' \
64+
curl -X POST --location 'https://<apig_id>.execute-api.eu-west-2.amazonaws.com/main/v1/template' \
6565
--header 'Content-Type: application/json' \
6666
--header 'Accept: application/json' \
6767
--header 'Authorization: ••••••' \
@@ -78,7 +78,7 @@ curl --location 'https://<apig_id>.execute-api.eu-west-2.amazonaws.com/main/v1/t
7878
Will create a single letter template. The CSV form part is optional. Do not set a content type header as this must be auto-generated by curl, so that it includes a form-data boundary.
7979

8080
```bash
81-
curl --location 'https://<apig_id>.execute-api.eu-west-2.amazonaws.com/<env>/v1/letter-template' \
81+
curl -X POST --location 'https://<apig_id>.execute-api.eu-west-2.amazonaws.com/<env>/v1/letter-template' \
8282
--header 'Accept: application/json' \
8383
--header 'Authorization: ••••••' \
8484
--form 'letterPdf=@<path_to_pdf>;type=application/pdf;filename=<string>' \

0 commit comments

Comments
 (0)