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
- www.sec.gov
- data.sec.gov
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!