Method GetAnalyteApplications
GetAnalyteApplications(string)
Retrieves the possible applications of a mixture containing an analyte of the specified chemical.
[OperationContract]
[FaultContract(typeof(ChemTypeNotFoundContract))]
[FaultContract(typeof(ValidationFaultContract))]
[SwaggerWcfTag("Chemicals", false)]
[SwaggerWcfPath(null, null, null, null, null, false, null, Summary = "Get the applications of an analyte from the specified chemical", Description = "Get the possible applications of a mixture containing an analyte with the specified chemical.")]
[WebGet(UriTemplate = "Overview/Analytes/Applications/{code}", ResponseFormat = WebMessageFormat.Json)]
[SwaggerWcfResponse(StatusCode = HttpStatusCode.OK, Description = "Success")]
[SwaggerWcfResponse(StatusCode = HttpStatusCode.InternalServerError, Description = "An unexpected error occurred while processing the request.", Type = typeof(JsonErrorMessage))]
[SwaggerWcfResponse(StatusCode = HttpStatusCode.BadRequest, Description = "Fault exception", Type = typeof(JsonErrorMessage))]
ChemicalApplication[] GetAnalyteApplications(string code)
Parameters
codestringThe unique identifier of the chemical analyte.
Returns
- ChemicalApplication[]
An array of Everest.Model.ChemTypes.ChemicalApplication representing the possible applications.
Remarks
This method is accessible via a GET request to the URI template:
Overview/Analytes/Applications/{code}.
Exceptions
- FaultException<TDetail>
Thrown when the specified chemical is not found.
- FaultException<TDetail>
Thrown when the input validation fails.