where is the part in the swagger code that maps an incoming route (that includes path variables) to an actual route in the swagger file ?
The reason that I ask is that I am trying to map an aws api gateway route (which is an arn of form arn:aws:execute-api:<regionid>:<accountid>:<apiid>/<stage>/<method>/<resourcepath>) to one of the paths in my swagger file.
My problem is that the apigw path obviously has substituted the path variable in to resourcepath whereas my swagger file has path variables defined.. e.g. paths : { "/my-profile/additional-info/{domain}" : ...
I am probably going to have to code a bunch of regex.. but was hoping I could copy something from the swagger code base
where is the part in the swagger code that maps an incoming route (that includes path variables) to an actual route in the swagger file ?
The reason that I ask is that I am trying to map an aws api gateway route (which is an arn of form
arn:aws:execute-api:<regionid>:<accountid>:<apiid>/<stage>/<method>/<resourcepath>
) to one of thepaths
in my swagger file.My problem is that the apigw path obviously has substituted the path variable in to resourcepath whereas my swagger file has path variables defined.. e.g.
paths : { "/my-profile/additional-info/{domain}" : ...
I am probably going to have to code a bunch of regex.. but was hoping I could copy something from the swagger code base