Contact Us: +1-604.5850078 Email:
Open Daily 10:00am - 6:00pm

package com.example.demo.controller;

import com.example.demo.model.User;
import com.example.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

public class UserController {

private UserService userService;

public List getAllUsers(){
return userService.getAllUsers();

public void addUser(@RequestBody User user){

public void updateUser(@RequestBody User user){

public void deleteUser(@PathVariable int id){

Leave a Reply

Your email address will not be published. Required fields are marked *

Get 50% Off! Event Planning Management Services

Click image to avail the promo.