Method GetFlasksByCode
- Namespace
- Everest.Service.Containers
- Assembly
- Everest.Service.dll
GetFlasksByCode(string)
Returns the flask corresponding to the given code if one is found or BarcodeNotFoundContract is thrown otherwise
[OperationContract]
[FaultContract(typeof(DbFaultContract))]
[FaultContract(typeof(BarcodeNotFoundContract))]
[FaultContract(typeof(ValidationFaultContract))]
[SwaggerWcfTag("Containers", false)]
[SwaggerWcfPath(null, null, null, null, null, false, null, Summary = "The flask corresponding to the given code", Description = "Returns the flask corresponding to the given code if one is found or BarcodeNotFoundContract is thrown")]
[WebGet(UriTemplate = "Flasks/{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))]
VolumetricContainerInstanceContract[] GetFlasksByCode(string code)
Parameters
code
stringThe code used during the flask registration (ideally engraved on the flask itself)
Returns
- VolumetricContainerInstanceContract[]
The flask corresponding to the given code
Exceptions
- KeyNotFoundException
This exception would be thrown if the given code is not found in the database