/bio/genes/{gene_id}

  • Description

    Retrieve information about a given gene.

  • URL (PATH)

    /bio/genes/{gene_id}?token=:token

  • Method

    GET

  • Auth required

    Optional (token)

  • Request parameters
    Parameter Description
    gene_id *required
    [integer]
    example: gene_id=1
    An integer corresponding to a gene 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/genes/1?token=
                                    
  • Success response (application/json)
                                        { 
        "token": "null", 
        "authorized": false, 
        "authorizationMessage": "null", 
        "responseCode": "200", 
        "responseMessage": "OK", 
        "errorsFound": null, 
        "geneBio": { 
        "gene_name": "alpha-1-B glycoprotein", 
        "gene_symbol": "A1BG" 
    } 
    } 
    
                                    
  • Error response (application/json)

    Common errors

    Gene_id error