MassBank / MassBank-web

The web server application and directly connected components for a MassBank web server
13 stars 22 forks source link

REST API request for use with the Spectra package #264

Open jorainer opened 3 years ago

jorainer commented 3 years ago

Dear @tsufz and @meier-rene ,

in order to enable integration of MassBank with the Spectra package I would need the following functionality being part of the REST API:

1) Get all spectrum IDs available (i.e. RECORD.ACCESSION) 2) Get spectra data: one element per spectrum with the following fields/rows. Here it would be important to allow specifying which fields to return in the query (to speed-up things) for the provided IDs (RECORD.ACCESSION).

Let me know if you need anything else or if I could be of any help. Also, let me know if that is possible at all, or if I should rather work on a way to directly access the MySQL database.

cheers, jo

meier-rene commented 3 years ago

Thank you for your ideas. If you want to have your sql views integrated please put them in an issue and i will insert them at the appropriate places.

jorainer commented 3 years ago

I posted the views as issue #265