Skip to content

Commit 9db6a98

Browse files
authored
Merge pull request #35 from madetech/fix-url-parameters-in-api-gateway-and-iot
Fix URL parameters in generated API Gateway and IoT URLs
2 parents f479110 + 9ce6b31 commit 9db6a98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/aws_codegen/rest_json_service.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ defmodule AWS.CodeGen.RestJSONService do
3232
Enum.reduce(action.url_parameters, action.request_uri,
3333
fn(parameter, acc) ->
3434
name = Enum.join([~S(#{), "URI.encode(", parameter.code_name, ")", ~S(})])
35-
String.replace(acc, "{#{parameter.name}}", "#{name}")
35+
String.replace(acc, "{#{parameter.location_name}}", name)
3636
end) |>
3737
# FIXME(jkakar) This is only here because the invoke-async method
3838
# defined for the Lambda API has an apparentyl spurious trailing slash

0 commit comments

Comments
 (0)