Comments (6)
The endpoints should accept json and return json, it is the standard format used for data in web API:s. Consuming the Chanjo API would be a lot easier if all of the endpoints accepted and returned valid json.
That's how I had it in the beginning. But then after integrating with scout we (me and people in Lund) realised that to be able to integrate well and to be able to modify reports on the fly from the HTML page of the report then it has to accept a form. See also:
Clinical-Genomics/scout#4539
from chanjo2.
But of course one can have 2 endpoints, one that accepts form data and one that accepts json!
from chanjo2.
That would be a single endpoint still. However, the response would be formatted based on the provided header.
Yeah I know, that's why I opened this issue. Currently we don't have any use to an endpoint that accepts json, so I was thinking to only accept form data. Haven't had time to work on this yet
from chanjo2.
The endpoints should accept json and return json, it is the standard format used for data in web API:s. Consuming the Chanjo API would be a lot easier if all of the endpoints accepted and returned valid json.
from chanjo2.
It would be nice to support both formats then! Usually the client sending the request specifies in the header which data format it wants (for example Accept: application/json
or Accept: application/xml
)
from chanjo2.
That would be a single endpoint still. However, the response would be formatted based on the provided header.
from chanjo2.
Related Issues (20)
- On report page, add one more field to specify a list of completeness cutoffs for the stats HOT 1
- Completeness cutoff on report has no memory of submitted form when page is refreshed
- Js errors on report page
- Lib import error while connecting to MySQL using MacOS HOT 1
- Failed to load API definition for Chanjo2 API HOT 7
- On report page, customize search to allow also HGNC symbols and Ensembl IDs
- Server timeout when loading exons HOT 13
- Trouble getting /report calls to the correct end point, round 2 HOT 4
- Detailed gene info in main report HOT 2
- Issues with customizing report through gene panel name HOT 3
- Occasionally large differences in coverage for same gene region in same sample HOT 11
- Can't install mysqlclient on macOS
- Warnings by the black (lint) action
- Startup errors crashing in log statement HOT 17
- Address security alerts
- Improve performance of get_coverage_completeness.py HOT 5
- Minimal stats endpoint for delivery reports in scout HOT 3
- Clarify "Average coverage" HOT 2
- Handle errors for condensed stats endpoint
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chanjo2.