Forum Discussion

CaptainLuffy's avatar
CaptainLuffy
Occasional Visitor
3 years ago

OpenAPI : How to add varying variable in Server Object?

Hi,
Apologies if this has been answered before.

 

I have a requirement where server base url and path can have 0 or multiple values present in URI.

for example,

https://localhost/pathVariable
https://localhost/abc/def/pathVariable

I want to use `pathVariable` In path segment. But I’m not sure what type of server base url I should write which will allow any length between server base url and parh. How can I achieve that?

 

Thank you.