##Requeriments
###Python Requirements
- Python >= 2.7
- Python Flask
- Python requests
- Python urllib
- Python urllib2
- Python json
###For deployment
##For Develop and testing
-
First clone the repo
git clone [email protected]:ChileanVirtualObservatory/flask_endpoint.git
-
Open a terminal and run endpoint.py
python endpoint.py
-
The webserver will be running in localhost:5000/
##Deployment
-
First clone the repo
git clone [email protected]:ChileanVirtualObservatory/flask_endpoint.git
-
Edit endpoint.wsgi with the file's path
sys.path.insert(0,"/var/www/flask_endpoint")
##Services
- Parameters : DACHS
-
Method: GET
-
Methond : POST
-
Return: VOTABLE
-
Method : POST
-
RETURN : VOTABLE With query id
-
Method: GET
-
Parameters: None
-
RETURN: UWL an xml with all querys with their status
-
Method: GET
-
Parameters: None
-
RETURN : UWL with query status
-
Parameters:
option phase , quote , executionduration , destruction , error , parameters , results , owner
-
Method: GET
###Simple Cone Search:
-
Method: GET
-
Attributes:
-
RA
Decimal degree
-
DEC
Decimal degree
-
SR
Decimal degree
-
Optional:
- VERB:
1 , 2 , 3
- VERB:
###Simple Image Acess:
-
Method: GET
-
Attributes:
-
POS = RA,DEC
Decimal degree
-
SIZE
Degree
-
Optional:
- INTERSECT
COVERS , ENCLOSED , CENTER , OVERLAPS
- NAXIS = ,
pixels
- CFRAME
ICRS, FK5, FK4, ECL, GAL , SGAL
- EQUINOX
?
- CRPIX
?
- CRVAL
?
- CDELT
?
- ROTANG
degree
- PROJ
TAN , SIN , ARC
- FORMAT
image/fits, image/png, image/jpeg, text/html, ALL, GRAPHIC, GRAPHIC-<SOMETHING>, METADATA
- VERB
1 , 2 , 3
- INTERSECT
-
To get specific Service (not all the data, just Shortname, Title, and AccessUrl)
http://endpoint.lirae.cl/external/{service} , service can be tap,scs,sia,ssa
-
Registry harvesting interface