/bio/diseases/{disease_id}/variants

  • Description

    Retrieve variant(s) associated to a given disease.

  • URL (PATH)

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

  • Method

    GET

  • Auth required

    Optional (token)

  • Request parameters
    Parameter Description
    disease_id *required
    [alphanumeric]
    example: C0000731
    A disease 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/diseases/C0000731/variants?token=
                                    
  • Success response (application/json)
                                        { 
        "token": "null", 
        "authorized": false, 
        "authorizationMessage": "null", 
        "responseCode": "200", 
        "responseMessage": "OK", 
        "errorsFound": null, 
        "variant_Id": [ 
        "rs1057518806", 
        "rs1057518886" 
    ] 
    } 
    
                                    
  • Error response (application/json)

    Common errors

    Disease_id error