/**
* Provides interaction with 'Drink' resource
* (Generated with springmvc-raml-parser v.2.0.4)
*
*/
@RestController
@Validated
@RequestMapping(value = "/drinks", produces = "application/json")
public interface DrinkController {
/**
* Retrieves a list of available drinks.
*
*/
@RequestMapping(value = "", method = RequestMethod.GET)
public ResponseEntity<DrinkCollection> getDrinks();
/**
* Creates a new drink.
*
*/
@RequestMapping(value = "", method = RequestMethod.POST)
public ResponseEntity<Drink> createDrink(
@javax.validation.Valid
@org.springframework.web.bind.annotation.RequestBody
CreateDrinkRequest createDrinkRequest);
/**
* Retrieves details for a specific drink.
*
*/
@RequestMapping(value = "/{drinkName}", method = RequestMethod.GET)
public ResponseEntity<Drink> getDrinkByName(
@PathVariable
String drinkName);
/**
* Modify an existing drink.
*
*/
@RequestMapping(value = "/{drinkName}", method = RequestMethod.PUT)
public ResponseEntity<DrinkUpload> updateDrinkByName(
@PathVariable
String drinkName,
@javax.validation.Valid
@org.springframework.web.bind.annotation.RequestBody
DrinkUpload drinkUpload);
/**
* Delete an existing drink.
*
*/
@RequestMapping(value = "/{drinkName}", method = RequestMethod.DELETE)
public ResponseEntity<?> deleteDrinkByName(
@PathVariable
String drinkName);
}
|