Skip to content

Commit

Permalink
add summary key to the docs, set the list of servers to the correct URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
Theodlz committed Oct 23, 2024
1 parent 9cccc85 commit a107406
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 0 deletions.
7 changes: 7 additions & 0 deletions extensions/skyportal/skyportal/handlers/api/alert.py
Original file line number Diff line number Diff line change
Expand Up @@ -834,6 +834,7 @@ async def get(self, object_id: str = None):
"""
---
single:
summary: Retrieve an object from Kowalski by objectId
description: Retrieve an object from Kowalski by objectId
tags:
- alerts
Expand Down Expand Up @@ -873,6 +874,7 @@ async def get(self, object_id: str = None):
application/json:
schema: Error
multiple:
summary: Retrieve objects from Kowalski by objectId and or position
description: Retrieve objects from Kowalski by objectId and or position
tags:
- alerts
Expand Down Expand Up @@ -1040,6 +1042,7 @@ async def get(self, object_id: str = None):
def post(self, objectId):
"""
---
summary: Save ZTF objectId from Kowalski as source in SkyPortal
description: Save ZTF objectId from Kowalski as source in SkyPortal
tags:
- alerts
Expand Down Expand Up @@ -1126,6 +1129,7 @@ def get(self, object_id: str = None):
"""
---
single:
summary: Retrieve aux data for an objectId from Kowalski
description: Retrieve aux data for an objectId from Kowalski
tags:
- alerts
Expand Down Expand Up @@ -1400,6 +1404,7 @@ async def get(self, object_id: str = None):
"""
---
summary: Serve alert cutout as fits or png
description: Serve alert cutout as fits or png
tags:
- alerts
- kowalski
Expand Down Expand Up @@ -1609,6 +1614,7 @@ async def get(self, object_id: str = None):
"""
---
summary: Serve alert cutouts as a triplet
description: Serve alert cutouts as a triplet
tags:
- alerts
- kowalski
Expand Down Expand Up @@ -1767,6 +1773,7 @@ async def get(self, alert_stream="ZTF"):
"""
---
summary: Get number of alerts in a time range
description: Get number of alerts in a time range
tags:
- alerts
- kowalski
Expand Down
4 changes: 4 additions & 0 deletions extensions/skyportal/skyportal/handlers/api/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ def get(self):
"""
---
summary: Retrieve available catalog names from Kowalski/Gloria/Melman
description: Retrieve available catalog names from Kowalski/Gloria/Melman
tags:
- archive
- kowalski
Expand Down Expand Up @@ -187,6 +188,7 @@ def get(self):
"""
---
summary: Retrieve data from available catalogs on Kowalski/Gloria/Melman by position
description: Retrieve data from available catalogs on Kowalski/Gloria/Melman by position
tags:
- archive
- kowalski
Expand Down Expand Up @@ -364,6 +366,7 @@ def post(self):
"""
---
summary: Retrieve archival SCoPe features from Kowalski/Gloria/Melman by position, post as annotation
description: Retrieve archival SCoPe features from Kowalski/Gloria/Melman by position, post as annotation
tags:
- features
- kowalski
Expand Down Expand Up @@ -626,6 +629,7 @@ def get(self, lc_id=None):
"""
---
summary: Retrieve archival light curve data from Kowalski/Gloria by position
description: Retrieve archival light curve data from Kowalski/Gloria by position
tags:
- archive
- kowalski
Expand Down
1 change: 1 addition & 0 deletions extensions/skyportal/skyportal/handlers/api/db_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class StatsHandler(BaseHandler):
def get(self):
"""
---
summary: Retrieve basic DB statistics
description: Retrieve basic DB statistics
tags:
- system_info
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def get(self, filter_id):
"""
---
single:
summary: Retrieve a filter as stored on Kowalski
description: Retrieve a filter as stored on Kowalski
tags:
- filters
Expand Down Expand Up @@ -96,6 +97,7 @@ def get(self, filter_id):
def post(self, filter_id):
"""
---
summary: POST a new filter version
description: POST a new filter version.
tags:
- filters
Expand Down Expand Up @@ -176,6 +178,7 @@ def post(self, filter_id):
def patch(self, filter_id):
"""
---
summary: Update a filter on Kowalski
description: Update a filter on Kowalski
tags:
- filters
Expand Down Expand Up @@ -411,6 +414,7 @@ def patch(self, filter_id):
def delete(self, filter_id):
"""
---
summary: Delete a filter on Kowalski
description: Delete a filter on Kowalski
tags:
- filters
Expand Down
7 changes: 7 additions & 0 deletions fritz.defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2011,3 +2011,10 @@ kowalski:
pgir: True
wntr: True
turbo: True

docs:
servers:
- url: https://fritz.science
description: Production server
- url: https://preview.fritz.science
description: Test server

0 comments on commit a107406

Please sign in to comment.