Skip to content

Commit

Permalink
Test out consdb root again.
Browse files Browse the repository at this point in the history
  • Loading branch information
ktlim committed Apr 30, 2024
1 parent f879cb4 commit 7461a7c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions python/lsst/consdb/pqserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,17 @@ def root():
return jsonify(data)


@app.get("/consdb")
def root2():
logger.info(request)
data = {
"instruments": INSTRUMENT_LIST,
"obs_types": OBS_TYPE_LIST,
"dtypes": DTYPE_LIST,
}
return jsonify(data)


@app.post("/flex/<instrument>/<obs_type>/addkey")
def add_flexible_metadata_key(instrument: str, obs_type: str):
logger.info(request)
Expand Down

0 comments on commit 7461a7c

Please sign in to comment.