aboutsummaryrefslogtreecommitdiff
path: root/gn3/api/general.py
AgeCommit message (Collapse)Author
2021-12-02Implement dataset metadata API endpoint.Arun Isaac
* guix.scm: Import (gnu packages rdf). (genenetwork3)[propagated-inputs]: Add python-sparqlwrapper. * gn3/settings.py (SPARQL_ENDPOINT): New variable. * gn3/api/general.py: Import datasets from gn3.db. (dataset_metadata): New API endpoint. * gn3/db/datasets.py: Import re, Template from string, Dict and Optional from typing, JSON and SPARQLWrapper from SPARQLWrapper, SPARQL_ENDPOINT from gn3.settings. (sparql_query, dataset_metadata): New functions.
2021-08-18Fix obvious linting errorsMuriithi Frederick Muriuki
* Fix linting errors that do not change the function of the code.
2021-08-07Add gunicorn support for productionPjotr Prins
2021-05-13Add end-point for running an rQTL programBonfaceKilz
* gn3/api/general.py (run_r_qtl): New function. * gn3/settings.py: New variable.
2021-05-13Rename file_utils to fs_helpersBonfaceKilz
Generally avoid naming things with a "utils" prefix/ suffix since it encourages contributors to dump any new functions there; and over time, as the code grows, things get messy...
2021-03-10Add extra endpoint for when TOKEN isn't providedBonfaceKilz
2021-03-08Replace APP_DEFAULTS dict with actual conf paramsBonfaceKilz
2021-03-08Use new extract_uploaded_file fn when uploading metadataBonfaceKilz
* gn3/api/general.py (upload_metadata): Update docstrings and update the use of "extract_uploaded_file" fn.
2021-02-16Return the correct message and status code in "/metadata/upload"BonfaceKilz
2021-02-16Add new endpoint for uploading dataBonfaceKilz