... | ... | @@ -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
|
|
|
> const SimpleJsonReq = require( "@brl/brl-gb/client/simple/simpleJsonReq" ).SimpleJsonReq
|
|
|
> 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 |
|
|
> 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 |