Giter Site home page Giter Site logo

mzmd-java's Introduction

System requirements:

  • Build-time: Java 8 JDK, Apache Maven
  • Runtime: Java 8 JRE or higher

msDataServer Web API

###HTTP GET /api/v2/filestatus

Checks the status of the server's open-file process. Returns additional file data if a file has been loaded and data model is ready..

####Server response:

HTTP 200 (OK): File has been loaded and ata model is ready, begin querying for points.
	Payload: { "mzmin" : float, "mzmax" : float, "rtmin" : float, "rtmax" : float, "intmin" : float, "intmax" : float, "pointcount": integer, "progress": float }
HTTP 204 (No Content): No file has been selected, open a file before continuing.
HTTP 400 (Bad Request): Malformed request (usually a missing parameter)
HTTP 403 (Forbidden): The file is currently being selected
HTTP 406 (Not Acceptable): The selected file is of the wrong file format, reselect file before continuing.
HTTP 409 (Conflict): The server is selecting a file or processing the selected file. Continue checking file status.

###HTTP GET /api/v2/getpoints

Queries the database for points to display on the graph. Requests a specific number of points within the given bounds. Server determines the detail level that would provide the same or more points than requested and samples this set to the requested number of points.

####URL parameters:

mzmin (double): mz lower bound (0 for global mz minimum)
mzmax (double): mz upper bound (0 for global mz maximum)
rtmin (float): rt lower bound (0 for global rt minimum)
rtmax (float): rt upper bound (0 for global rt maximum)
m (int): the number of points on mz axis (0 for no limit)
n (int): the number of points on rt axis (0 for no limit)

####Server response:

HTTP 200 (OK): Query successfully serviced, returning points.
	Payload: [[<pointId>,<traceId>,<mz>,<rt>,<intensity>], ... ]
HTTP 204 (No Content): No file has been selected, open a file before continuing.
HTTP 400 (Bad Request): Malformed request, missing parameter or invalid query range (i.e. mzmin > mzmax).
HTTP 406 (Not Acceptable): The previously selected file is of the wrong file format, reselect file before continuing.
HTTP 409 (Conflict): The server is selecting a file or processing the selected file. Continue checking file status.

mzmd-java's People

Contributors

yrm9837 avatar

Stargazers

 avatar Anurag Raj avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.