/bio/genes/{gene-id}

  • Description

    Retrieve information about a given gene.

  • URL (PATH)

    /bio/genes/{gene-id}?token={token}

  • Method

    GET

  • Authentication

    Optional (token)

  • Request parameters & Path variables
    Parameter Description
    gene-id
    [integer]
    required
    An integer corresponding to a gene id
    token
    [alphanumeric]
    optional
    Optional access key to save the current query in your profile
  • Example request
                                         https://disnet.ctb.upm.es/api/disnet/bio/genes/2?token=eJtdWrIisOiJt...
                                    
  • Success response (application/json)
                                        {
      "token": null,
      "authorized": false,
      "authorizationMessage": null,
      "responseCode": "200",
      "responseMessage": "OK",
      "errorsFound": [],
      "data": {
        "geneId": 2,
        "geneName": "alpha-2-macroglobulin",
        "geneSymbol": "A2M"
      }
    }
                                    
  • Error response (application/json)

    Common errors

    Gene id error