1 Answer
- Newest
- Most votes
- Most comments
0
Hi, @Andy Douglas.
Does it work if you enclose the elements of the array in {}
as follows?
"Events": {
"AreaGet": {
"Type": "Api",
"Properties": {
"Path": "/",
"Method": "GET",
"RequestParameters": [
{
"method.request.querystring.latlonl": {
"Required": "true"
}
},
{
"method.request.querystring.latlonr": {
"Required": "true"
}
}
]
}
}
}
Relevant content
- Accepted Answerasked a year ago
- Accepted Answerasked 4 months ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a year ago
Ah that's it! Thank you. Rather annoyingly, that works!
I say annoyingly, because I'm sure I tried that (?) but also because visual studio hates it - it's all in red, and vs2022 is pretty good at these things usually. I guess the problem was me not really knowing JSON or YAML properly and how to translate between them - I thought I did, but maybe not. Examples using JSON in the docs would be very welcome though.
Thanks again - I can move forward now. Andy.