Context path: https://www.xialab.ca/api/
Path | Parameters | Return values | Description |
---|---|---|---|
/login | String: usrID (NA for error) | A folder named by usrID | |
/upload/{usrID} | file: file (provided by file uploader) | String: Success or Fail | Upload file to the user folder |
/download/{usrID}/{fileName} | APPLICATION_OCTET_STREAM | Download the file from user folder | |
/plot/{usrID} | String plotName, String color | String: plotName (or NA for error). | Generate an example plot with two parameters |
The server folder path is /home/glassfish/user-data Inside the folder, there is a test folder (or usrID): internal_test_usrdir