Skip to content
Snippets Groups Projects

Draft: Support multiple APIs

Open Duncan Macleod requested to merge duncanmmacleod/gwdatafind:multi-api into main
5 files
+ 205
53
Compare changes
  • Side-by-side
  • Inline
Files
5
+ 18
1
@@ -15,10 +15,27 @@
# You should have received a copy of the GNU General Public License
# along with GWDataFind. If not, see <http://www.gnu.org/licenses/>.
"""API definitions for the GWDataFind Client."""
"""API definitions for the GWDataFind Client.
Each API module must define the same set of functions that
return paths to be queried on the host to return the various
endpoints.
The required functions and signatures are:
- ``ping_path()``
- ``find_observatories_path()``
- ``find_types_path(site=None)``
- ``find_times_path(site, frametype, start, end)``
- ``find_url_path(framefile)``
- ``find_latest_path(site, frametype, urltype)``
- ``find_urls_path(site, frametype, start, end, urltype=None, match=None)``
"""
# list of APIs
APIS = (
"ldr",
"v1",
)
DEFAULT_API = "ldr"
Loading