Update README.md

This commit is contained in:
quandanrepo 2023-10-10 11:49:37 +01:00 committed by GitHub
parent dda9065a88
commit d3b1bb4bb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,6 +83,6 @@ curl -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d
```
```json
curl -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{"body": "{\"file_location\": \"s3://retrofit-data-dev/model_build_data/change_data/rdsap_full/test_data_with_id.parquet\", \"property_id\": 1, \"portfolio_id\": 4, \"created_at\": \"now\"}"}'
curl -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{"body": "{\"file_location\": \"s3://retrofit-data-dev/sap_change_model/dataset.parquet\", \"property_id\": 1, \"portfolio_id\": 4, \"created_at\": \"now\"}"}'
```
This will send a POST request to the running Lambda function and pass in the required data as JSON.