Method GetApplications
GetApplications(MixtureComponentsContract)
Retrieves the possible applications of a mixture containing the specified set of chemicals.
[OperationContract]
[FaultContract(typeof(ChemTypeNotFoundContract))]
[FaultContract(typeof(ValidationFaultContract))]
[SwaggerWcfTag("Chemicals", false)]
[SwaggerWcfPath(null, null, null, null, null, false, null, Summary = "Get the applications of a mixture from the specified set of chemicals", Description = "Get the possible applications of a mixture containing the specified set of chemicals.")]
[WebInvoke(UriTemplate = "Overview/Mixture/Applications", Method = "POST", RequestFormat = WebMessageFormat.Json, 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[] GetApplications(MixtureComponentsContract mixtureComponents)
Parameters
mixtureComponentsMixtureComponentsContractThe components of the mixture.
Returns
- ChemicalApplication[]
An array of Everest.Model.ChemTypes.ChemicalApplication representing the possible applications.
Remarks
This method is accessible via a POST request to the URI template:
Overview/Mixture/Applications.
Exceptions
- FaultException<TDetail>
Thrown when one of the specified chemical types is not found.
- FaultException<TDetail>
Thrown when the input validation fails.