Table of Contents

Method GetBottles

Namespace
Everest.Service.Containers
Assembly
Everest.Service.dll

GetBottles(bool)

Returns the list of registered bottle kinds

[OperationContract]
[SwaggerWcfTag("Containers", false)]
[SwaggerWcfPath(null, null, null, null, null, false, null, Summary = "The list of bottles corresponding to filter criterion", Description = "Returns the list of registered bottle kinds")]
[WebGet(UriTemplate = "Bottles?onStock={onStock}", 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))]
BottleKindDetailsContract[] GetBottles(bool onStock = true)

Parameters

onStock bool

True if the list should include only the bottles that are currently on stock

Returns

BottleKindDetailsContract[]

The list of bottles corresponding to filter criterion