Closed ghost closed 2 years ago
@twalker
@cmneal26 Can you send me a google drive link or something like that for the excel file? I'm going to put it in a database, and make that data accessible, so we can call an api to retrieve the analyte info, and we can use all 10k records, and not have to do a fake thing like having only some searchable.
started api project: https://github.com/ingrey1/free-free-education-api
Oh, this endpoint is https. I don't need the api server for this then. I'm still going to put it up though, at least we can use it for making the analyte data accessible via an endpoint.
I'm not exactly sure of the analyte property data types. So, in the postgres cloud db, gonna store them as json.
base url will be endpoint will be: something-heroku-weird.com/analytes
query params available: ?name=analyte-name-or-id
full url: something-heroku-weird.com/analytes?name=analyte-name-or-id
returned data will be like this, but json:
{data: [{name: analyte1, id: 1}]}
@cmneal26
Those 833 analytes you gave me are now in a cloud Postgres database. I'll add the application code to setup the API by sometime next week.
Successful GET REQUEST TO ANALYTES API
Unsuccessful GET REQUEST (missing 'name' query param)
Complete. The code for the api deployed to Heroku: https://github.com/ingrey1/analytes-api
@cmneal26
We can dump all 10k analyte records from the excel file in a db, and ill make them available via an endpoint.