hapi-server / server-java

Java-based server which works with Java-based web servers like Tomcat
Apache License 2.0
0 stars 1 forks source link

Investigate using Rest API for SSCWeb server #11

Open jbfaden opened 2 years ago

jbfaden commented 2 years ago

For the SSCWeb server, which I'd put aside while getting ready for the ESAC HAPI server, Bob pointed out that there's a REST API which gives XML responses which I could use to avoid all the overhead of linking in libraries. For example:

curl -H "Content-Type: application/xml" --data-ascii @locations/requests/themis2.xml https://sscweb.gsfc.nasa.gov/WS/sscr/2/locations

posts a request for themis locations data. This talks about the API: https://sscweb.gsfc.nasa.gov/WebServices/REST/

jbfaden commented 2 years ago

Bob provided the URL https://sscweb.gsfc.nasa.gov/WebServices/REST/restExamples.tar.gz which includes restExamples/sh/locations/requests/themis2.xml. I have a copy of this on my home machine, /home/jbf/ct/hapi/study/2022/sscweb/20220610/restExamples/sh/locations/requests/themis2.xml.