@@ -491,10 +491,12 @@ async def v1_gateway(request: Request, path: str):
491
491
async def open_api (request : Request ):
492
492
"""
493
493
**open_api**
494
- will return a json open api specification for the main API
494
+ will return a json open api specification for the servers loaded from GitHub repo
495
495
:param request:
496
496
:return:
497
497
"""
498
+ # NOTE this allows me to load openapi specifications from another repo in GitHub therefore do not have to update
499
+ # API Specifications on the gateway
498
500
spec_url = "https://raw.githubusercontent.com/MJ-API-Development/open-api-spec/main/open-api.json"
499
501
response = await redis_cache .get (key = spec_url , timeout = 1 )
500
502
if response is None :
@@ -563,6 +565,7 @@ async def check_all_services():
563
565
compile a full list of services and show if they are available
564
566
:return:
565
567
"""
568
+ # TODO update this to use the gateway server monitor method specifically this one = remote_servers.sort_api_servers_by_health()
566
569
ping_master = requests .get ('https://stock-eod-api.site/_ah/warmup' )
567
570
master = "Offline"
568
571
0 commit comments