aws api gateway adding basePath using openApi 3.0.3

234 Views Asked by At

Hey I m using openapi version 3.0.3 to add restApi's in Aws gateway. The problem is I have to add a basePath for all my Api's.

The docs says "If the API doesn't contain any basePath variables, the Import API feature checks the server.url string to see if it contains a path beyond "/". If it does, that path is used as the base path".

I tried adding the following basePath in server.url

servers :[
   {
     "url" : "/foo"
   }
]

but the basePath is not getting reflected am I missing something here?

0

There are 0 best solutions below