OpenAPI.NET.CSharpAnnotations icon indicating copy to clipboard operation
OpenAPI.NET.CSharpAnnotations copied to clipboard

Handle <url> tag in Document Config

Open PerthCharern opened this issue 7 years ago • 2 comments

It is cumbersome to add all the possible hosts to every operation. We should support reading the extra URLs from the document config.

PerthCharern avatar Jun 06 '18 17:06 PerthCharern

So I've noticed that all it seems to use the host in the tags for is generating the servers list. So what I did is all my tags just say https://host/api/bla, and the output of the generator is an object you can access the server property on so I stick the hosts in between generation and seralization to json

MadocGwyn avatar May 14 '19 23:05 MadocGwyn

Thanks for the idea @MadocGwyn . A couple of requests :)

  1. Would it be possible to support server/host tags in Advanced Configuration XML?
  2. Would it be possible to expose this in the task that publishes the swagger doc?

sandeepiiit avatar Jun 11 '19 18:06 sandeepiiit