diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..4984b17 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,28 @@ +asgiref==3.8.1 +astropy==6.1.3 +astropy-iers-data==0.2024.9.12.13.29.57 +astropy_healpix==1.0.3 +attrs==24.2.0 +Django==5.1.1 +djangorestframework==3.15.2 +drf-spectacular==0.27.2 +healpy==1.17.3 +inflection==0.5.1 +jsonschema==4.23.0 +jsonschema-specifications==2023.12.1 +numpy==2.1.1 +packaging==24.1 +pandas==2.2.2 +psycopg2-binary==2.9.9 +pyarrow==17.0.0 +pyerfa==2.0.1.4 +python-dateutil==2.9.0.post0 +pytz==2024.2 +PyYAML==6.0.2 +referencing==0.35.1 +rpds-py==0.20.0 +six==1.16.0 +sqlparse==0.5.1 +typing_extensions==4.12.2 +tzdata==2024.1 +uritemplate==4.1.1 diff --git a/views.py b/views.py index 5d0155f..7c4ec88 100644 --- a/views.py +++ b/views.py @@ -4,4 +4,11 @@ from rest_framework import status from .models import GaiaSource from .serializers import GaiaSourceSerializer - +class ConeSearchView(APIView): + def get(self, request, ra, dec, radius): + radius = float(radius) + ra = radians(float(ra)) + dec = radians(float(dec)) + objects = GaiaSource.objects.all() + result = [] +