Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation -> server list and endpoint summary #560

Merged
merged 2 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading