Skip to content

final#4

Open
stickymittens wants to merge 1 commit intoih-java-08-25:mainfrom
stickymittens:main
Open

final#4
stickymittens wants to merge 1 commit intoih-java-08-25:mainfrom
stickymittens:main

Conversation

@stickymittens
Copy link

No description provided.

public ResponseEntity<Item> create(@Valid @RequestBody Item item){
Item createdItem = itemService.create(item);

URI location = ServletUriComponentsBuilder
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, we have not seen this in class. Do you know why this is interesting to do?

//repository custom methods
@GetMapping("/inventory/category/{categoryString}")
public List<Item> findItemsByCategory(@PathVariable String categoryString) {
Category categoryEnum = Category.valueOf(categoryString.toUpperCase());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not as we have seen it but it can work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants