BHTOM-Team / bhtom2

7 stars 2 forks source link

AddFavouriteObservatory API does not create Observatory Matrix #156

Closed wyrzykow closed 5 months ago

wyrzykow commented 5 months ago

Our user sdufoer, tried adding his observatory via API and failed:

curl -X POST \
  'https://bh-tom2.astrolabs.pl/observatory/addFavouriteObservatory/' \
  -H 'Authorization: Token jaddejaddejadde' \
  -H 'Content-Type: application/json' \
  -d '{
    "observatory": "EEye 40-cm",
    "camera": "QHY268M CMOS camera",
    "comment": "This is an optional comment."
  }'

The response is: : {"Status":"Created"}

But still nothing showing up...

Also, AddObservatoryMatrix button in admin, does not allow to select observatory, only the camera.

These matrixes should use oname, instead of camera name. oname should also be a possible property of the API.