Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • C CSpec Reasoner SVI
  • Project information
    • Project information
    • Activity
    • Members
  • Wiki
    • Wiki
  • Activity
Collapse sidebar
  • ClinGenClinGen
  • cspec
  • CSpec Reasoner SVI
  • Wiki
  • API

API · Changes

Page history
Updated documentation to include POST method alternative. authored Jan 19, 2023 by Alejandro Zuniga's avatar Alejandro Zuniga
Hide whitespace changes
Inline Side-by-side
API.md
View page @ 06724691
...@@ -25,8 +25,10 @@ Assertion API endpoint for computing variant pathogenicity given a set of eviden ...@@ -25,8 +25,10 @@ Assertion API endpoint for computing variant pathogenicity given a set of eviden
> } > }
> ``` > ```
> >
> Example of how the route works:
> Examples of how the route works:
> GET Method
> ```plaintext > ```plaintext
> const SimpleJsonReq = require( "@brl/brl-gb/client/simple/simpleJsonReq" ).SimpleJsonReq > const SimpleJsonReq = require( "@brl/brl-gb/client/simple/simpleJsonReq" ).SimpleJsonReq
> let baseUrl = "https://cspec.genome.network/cspec/eng/svi" > let baseUrl = "https://cspec.genome.network/cspec/eng/svi"
...@@ -140,4 +142,18 @@ Assertion API endpoint for computing variant pathogenicity given a set of eviden ...@@ -140,4 +142,18 @@ Assertion API endpoint for computing variant pathogenicity given a set of eviden
> status: 'ok' > status: 'ok'
> } > }
> } > }
> ```
> POST Method Alternative
> ```plaintext
> const SimpleJsonReq = require( "@brl/brl-gb/client/simple/simpleJsonReq" ).SimpleJsonReq
> let baseUrl = "https://cspec.genome.network/cspec/eng/svi"
> let clientOpts = { timeout: 600000 }
> let jsClient = undefined
> let resp = undefined
> jsClient = new SimpleJsonReq( baseUrl, clientOpts )
> let reqConfig = {
> serverCertCheck : false,
> }
> resp = await jsClient.doPost('/assertion', payload, reqConfig)
> ``` > ```
\ No newline at end of file
Clone repository
  • API
  • Home