REST web Service to visualize fits format data, via http://js9.si.edu/
- Install Maven download
- Install Tomcat download
git clone https://github.com/MPDL/fits-service
- Compile the service: go into
fits-service directory
, runmvn clean install
- Copy
fits.war
in Tomcatwebapp
directory - Create file
fits-service.properties
, add following property in it
service.url = url_of_the _service
and put the file into Tomcat conf
directory
- Start Tomcat
- Service runs under
url_of_the _service/fits
Following REST commands are implemented(You can check http://localhost:8080/swc/api/explain
page for swc-service usage examples):
- Method: POST
- Media type: multipart/form-data
- Input fields:
- field 1:
- name: file1
- type: file
- value: locally selected fits file
- field 1:
- Response: Delivers HTML view representation of the fits file.
- Method: GET
- Media type: application/x-www-form-urlencoded
- Input fields:
- field 1:
- name: url
- type: text
- value: link to the fits URL
- field 1:
- Response: returns HTML view representation of the fits file referenced by the URL.