Forum Discussion

RubenM55's avatar
RubenM55
Occasional Contributor
2 years ago

V3.0 Specify URL inside each API call

Hi, I'm trying to know if I could specify the server inside the definition of each API.

What I'm trying to avoid is having the servers in the drop-down list.

Or maybe having different sections in same swagger (each one with his own server sections, its own paths section, etc) ?

Thanks in advance.

  • I found it, the solution to my question is overriding Servers inside the definition of each path.

    at level of tags, summary, description, operationId, etc. This include a section of "servers" on each API call just above the "execution" button.
    Screenshot of example, thanks!

  • RubenM55's avatar
    RubenM55
    Occasional Contributor

    I found it, the solution to my question is overriding Servers inside the definition of each path.

    at level of tags, summary, description, operationId, etc. This include a section of "servers" on each API call just above the "execution" button.
    Screenshot of example, thanks!