Beers

Get Beer by UPC

Get Beer by UPC Code

get

Path Parameters

upcstringrequired

UPC Code

Response

application/json

Get Beer by UPC Response

Beer

idstring | null(uuid)read-only
versioninteger | nullread-only
createdDatestring | null(date-time)read-only
lastModifiedDatestring | null(date-time)read-only
beerNamestringrequired
beerStylestringrequired

Allowed values:LAGERPILSNERSTOUTGOSEPORTERALEWHEATIPAPALE_ALESAISON

upcstringrequired
quantityOnHandinteger
pricestring(decimal)required
get/api/v1/beerUpc/{upc}
 
application/json

Order Service

Brewery Order Operations

createNewCustomer

Register as new customer

post

Body

application/json

Customer

namestringrequired

>= 1 characters<= 255 characters

Response

Customer Created

post/api/v1/customers

Body

{ "name": "name" }
 

getByCustomerId

Get customer by Id

get

Path Parameters

customerIdstring(uuid)required

Customer Id

Response

application/json

HTTP Okay

Customer

idstring | null(uuid)read-only
versioninteger | nullread-only
createdDatestring | null(date-time)read-only
lastModifiedDatestring | null(date-time)read-only
namestringrequired

>= 1 characters<= 255 characters

get/api/v1/customers/{customerId}
 
application/json

UpdateByCustomerId

Update Customer by Id

put

Path Parameters

customerIdstring(uuid)required

Customer Id

Body

application/json

Customer

namestringrequired

>= 1 characters<= 255 characters

Response

Beer Updated

put/api/v1/customers/{customerId}

Body

{ "name": "name" }