Introduction:
This web services provides the glycan details generated as result from the glycan ID. In a glycan list webpage, a web service is used to return the list of glycan based on a search in the search page. From the Glycan list, glycan ID can be clicked for more details about it. This ID is used as part of this web service to retrieve the individual elements of the Glycan.

Web service call: 
HTTP Request method		GET
Variables			id	ID of the Glycan
Example: http://glygen.org/api/glycan/detail/G00053MO

Function:
Based on the glycan ID the web service will return the details of the glycan. The result set will be encoded in JSON (see separate JSON schema) and returned. 

Response:
Content					JSON
HTTP Content Type			application/json
Access-Control-Allow-Origin		*

Warning: 
To all Cross-Origin Resource Sharing (CORS) the web service has to allow all domains access. Otherwise browsers will not permit to call this web service by a webpage. Therefore the HTTP response header must contain the appropriate Access-Control-Allow-Origin statement.

Note: 
An example JSON is available separately and the JSON data structure is documented in a JSON schema.


General error codes:
====================
{
    "open-connection-failed": "Unable to connect to database."
}


Input error codes:
==================
{
    "missing-parameter":"one of the required parameter."
    ,"invalid-parameter-value":"one of the required parameter has invalid value."
    ,"invalid-parameter-value-length":"one of the required parameter value is too long"
    ,"non-existent-record":"no record exist for the submitted ID"
}

        

