how to handle sub domains in open api spec?

147 Views Asked by At

I am preparing open api spec 3.0 for an external system hosted by Government. I am lacking to handle subdomains.

There are two endpoints available as per Edgar and API Documentation

I came up with server details for Open api spec yaml as follows

servers:
  - url: 'https://data.sec.gov'
  - url: 'https://www.sec.gov'

But I am not sure if this is the correct approach. I did a quick lookup on Netcraft and found them to be sharing same server details.

How to handle subdomains(www and data) in oas?

Thanks in advance!

0

There are 0 best solutions below