Giter Site home page Giter Site logo

clin-qlin-me's Introduction

Qlin-Me

Introduction

This API provides endpoints to upload validate and check status of a batch.

A visual OpenAPI documentation is available at: https://qlin-me.cqgc.hsj.rtss.qc.ca

Step by step

Bellow are the most used endpoints a user may want to know about.

  • authentication => will grant a token for user email + password
  • upload metadata => validate and save a metadata by batch_id
  • status of batch => summary of the current state of the batch by batch_id

Authentication

In order to use the API the user has to get a token using the auth endpoint:

Example

curl --location 'https://qlin-me.cqgc.hsj.rtss.qc.ca/api/v1/auth/login?email=foo%40bar.com&password=<user_pwd>'

All specials characters in email or password have to be percent encoded: https://www.w3schools.com/tags/ref_urlencode.asp

OpenAPI Doc. ref. : https://qlin-me.cqgc.hsj.rtss.qc.ca/#tag/Authentication/operation/authLoginByEmailPassword

Upload metadata

Will create or update the metadata for the batch_id if valid, otherwise return all the errors to the user.

curl --location 'https://qlin-me.cqgc.hsj.rtss.qc.ca/api/v1/batch/<batch_id>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data '{
  "submissionSchema" : "CQGC_Germline",
  "analyses" : [...]
}'

OpenAPI Doc. ref. : https://qlin-me.cqgc.hsj.rtss.qc.ca/#tag/Batch/operation/batchCreateUpdate

Status of a batch

Will validate and return errors of both metadata and cram, tsv, json, vcfs ... files by batch_id.

curl --location 'https://qlin-me.cqgc.hsj.rtss.qc.ca/api/v1/batch/<batch_id>/status' \
--header 'Authorization: Bearer <token>'

Note: That endpoint also works with metadata JSON file deployed manually though aws-cli on S3.

OpenAPI Doc. ref. : https://qlin-me.cqgc.hsj.rtss.qc.ca/#tag/Batch/operation/batchStatus

clin-qlin-me's People

Contributors

creativeyann17 avatar kstonge 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.