Class LaptopsController
java.lang.Object
edu.ucsb.cs156.example.controllers.ApiController
edu.ucsb.cs156.example.controllers.LaptopsController
@RequestMapping("/api/laptops")
@RestController
public class LaptopsController
extends ApiController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeleteLaptop
(Long id) postLaptop
(String name, String cpu, String gpu, String description) updateLaptop
(Long id, @Valid Laptop incoming) Methods inherited from class edu.ucsb.cs156.example.controllers.ApiController
genericMessage, getCurrentUser, handleGenericException
-
Constructor Details
-
LaptopsController
public LaptopsController()
-
-
Method Details
-
allLaptops
-
getById
-
postLaptop
-
deleteLaptop
-
updateLaptop
-