Commit 535824e8 by Patryk Czarnik

nie wiem co

parent 20eec3cf
......@@ -42,7 +42,7 @@ public class ProductEndpoint {
// Ta metoda pokazana tylko po to, aby wytłumaczyć, że struktura adresów powinna odpowiadać logicznej strukturze danych.
// W prawdziwej aplikacji raczej nie dochodzi się do poziomu pojedynczych pól. Teoretycznie można.
@GetMapping("/{id}/price")
@GetMapping(path="/{id}/price", produces="text/plain")
public BigDecimal getPrice(@PathVariable Integer id) {
return getOneProduct(id).getPrice();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment