TEXT   102
public class MyRestController
Guest on 30th November 2024 05:19:29 AM


  1. public class MyRestController {
  2.  
  3.         @RequestMapping(value="/{user}", method=RequestMethod.GET)
  4.         public User getUser(@PathVariable Long user) {
  5.                
  6.         }
  7.  
  8.         @RequestMapping(value="/{user}/customers", method=RequestMethod.GET)
  9.         List<Customer> getUserCustomers(@PathVariable Long user) {
  10.        
  11.         }
  12.  
  13.         @RequestMapping(value="/{user}", method=RequestMethod.DELETE)
  14.         public User deleteUser(@PathVariable Long user) {
  15.                
  16.         }
  17.  
  18. }

Raw Paste

Login or Register to edit or fork this paste. It's free.