/bio/variants/{variant_id}

  • Description

    Retrieve information about a given variant.

  • URL (PATH)

    /bio/variants/{variant_id}?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?token=
                                    
  • Success response (application/json)
                                        { 
        "token": "null", 
        "authorized": false, 
        "authorizationMessage": "null", 
        "responseCode": "200", 
        "responseMessage": "OK", 
        "errorsFound": null, 
        "variantBio": { 
        "chromosome": "5", 
        "chrposition": "150860514", 
        "consequence": "intron_variant" 
    } 
    } 
    
                                    
  • Error response (application/json)

    Common errors

    Variant_id error