Skip to content

Commit

Permalink
Documentation: server list and endpoint summary (#560)
Browse files Browse the repository at this point in the history
* add summary key to the docs

* set the list of servers to the correct URLs
  • Loading branch information
Theodlz authored Oct 23, 2024
1 parent 9cccc85 commit 0058897
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 4 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/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
12 changes: 8 additions & 4 deletions extensions/skyportal/skyportal/handlers/api/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ class ArchiveCatalogsHandler(BaseHandler):
def get(self):
"""
---
summary: Retrieve available catalog names from Kowalski/Gloria/Melman
summary: Retrieve available catalog names from Kowalski
description: Retrieve available catalog names from Kowalski/Gloria/Melman
tags:
- archive
- kowalski
Expand Down Expand Up @@ -186,7 +187,8 @@ class CrossMatchHandler(BaseHandler):
def get(self):
"""
---
summary: Retrieve data from available catalogs on Kowalski/Gloria/Melman by position
summary: Retrieve data from available catalogs in Kowalski by position
description: Retrieve data from available catalogs on Kowalski/Gloria/Melman by position
tags:
- archive
- kowalski
Expand Down Expand Up @@ -363,7 +365,8 @@ class ScopeFeaturesHandler(BaseHandler):
def post(self):
"""
---
summary: Retrieve archival SCoPe features from Kowalski/Gloria/Melman by position, post as annotation
summary: Retrieve archival SCoPe features 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 @@ -625,7 +628,8 @@ class ArchiveHandler(BaseHandler):
def get(self, lc_id=None):
"""
---
summary: Retrieve archival light curve data from Kowalski/Gloria by position
summary: Retrieve archival light curve data 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 0058897

Please sign in to comment.