/query/diseaseCount

  • Description

    Retrieve number of diseases for a given source and snapshot.

  • URL (PATH)

    /query/diseaseCount?source=:source&version=:version&token=:token

  • Method

    GET

  • Auth required

    Yes (token)

  • Request parameters
    Parameter Description
    source *required
    [alphanumeric]
    example: source=wikipedia
    Name of the information source.
    version *required
    [alphanumeric with format “aaaa-mm-dd”]
    example: token=eyJhbGciOiJI...
    Date of information source extraction, in "yyyy-mm-dd" format.
    token *required
    [alphanumeric]
    example: token=eyJhbGciOiJI...
    Access key that allows the query to be executed.
  • Example request
                                         
                                             GET http://disnet.ctb.upm.es/api/disnet/query/diseaseCount?source=pubmed&version=2018-04-03&token=eyJhbGciOiJI...
                                         
                                    
  • Success response (application/json)
                                        
                                            {
                                                "token": "eyJhbGciOiJI...",
                                                "authorized": true,
                                                "authorizationMessage": "Authorized!",
                                                "responseCode": "200",
                                                "responseMessage": "OK",
                                                "errorsFound": [],
                                                "count": 2355
                                            }
                                        
                                    
  • Error response (application/json)

    Common errors