/bio/variants/{variant_id}/diseases

  • Description

    Retrieve disease(s) associated to a given variant.

  • URL (PATH)

    /bio/variants/{variant_id}/diseases?token=:token

  • Method

    GET

  • Auth required

    Optional (token)

  • Request parameters
    Parameter Description
    variant_id *required
    [alphanumeric]
    example: rs1000113
    A variant id
    token
    [alphanumeric]
    example: token=eyJhbGciOiJI...
    Optional access key to save the current query inside the user's profile
  • Example request
                                         GET http://disnet.ctb.upm.es/api/disnet/bio/variants/rs1000113/diseases?token=
                                    
  • Success response (application/json)
                                        { 
        "token": "null", 
        "authorized": false, 
        "authorizationMessage": "null", 
        "responseCode": "200", 
        "responseMessage": "OK", 
        "errorsFound": null, 
        "diseases_Ids": [ 
        "C0009324", 
        "C0010346" 
    ] 
    } 
    
                                    
  • Error response (application/json)

    Common errors

    Variant_id error