Open dirodriguezm opened 1 year ago
For the interface, I think it's a good idea to just use the same JSON you would use for a curl request for simplicity:
from alerce.core import Alerce
alerce = Alerce()
query = {
"collection": "detections",
"filter": {
"oid": "ZTF1"
},
"sort": { "mjd": 1 },
"limit": 10
}
detections = Alerce.mongo_find(query, pandas=True)
The client must be able to send queries to this API following these steps
Should we validate the input in every verb or just let the program fail?
The client must be able to use the new mongo support on the API. An interface should be drafted and proposed to the team.
Interface proposals
1