Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5e8710e

Browse files
added config settings for initializing gateway
1 parent 7278b26 commit 5e8710e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎src/main/main.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,10 +491,12 @@ async def v1_gateway(request: Request, path: str):
491491
async def open_api(request: Request):
492492
"""
493493
**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
495495
:param request:
496496
:return:
497497
"""
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
498500
spec_url = "https://raw.githubusercontent.com/MJ-API-Development/open-api-spec/main/open-api.json"
499501
response = await redis_cache.get(key=spec_url, timeout=1)
500502
if response is None:
@@ -563,6 +565,7 @@ async def check_all_services():
563565
compile a full list of services and show if they are available
564566
:return:
565567
"""
568+
# TODO update this to use the gateway server monitor method specifically this one = remote_servers.sort_api_servers_by_health()
566569
ping_master = requests.get('https://stock-eod-api.site/_ah/warmup')
567570
master = "Offline"
568571

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /