Table of Contents

Method GetBottle

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

GetBottle(int)

Returns the bottle kind associated with the given id

[OperationContract]
[FaultContract(typeof(ValidationFaultContract))]
[FaultContract(typeof(DbFaultContract))]
[FaultContract(typeof(BottleNotFoundContract))]
[SwaggerWcfTag("Containers", false)]
[SwaggerWcfPath(null, null, null, null, null, false, null, Summary = "The bottle kind corresponding to the given identifier", Description = "Returns the bottle kind associated with the given id")]
[WebGet(UriTemplate = "Bottle?id={id}", 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 GetBottle(int id)

Parameters

id int

The id associated with the target bottle kind

Returns

BottleKindDetailsContract

The bottle kind corresponding to the given identifier