mirror of
https://github.com/correl/openapi-core.git
synced 2025-01-01 11:03:19 +00:00
7 lines
158 B
Python
7 lines
158 B
Python
|
from openapi_core.spec.servers import get_server_url
|
||
|
|
||
|
|
||
|
def get_spec_url(spec, index=0):
|
||
|
servers = spec / 'servers'
|
||
|
return get_server_url(servers / 0)
|