package com.demo.swaggerdemo.controller;
import com.demo.swaggerdemo.bean.Student;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/api")
public class SwaggerDemoController {
@GetMapping("/viewStudent")
public ResponseEntity show() {
return new ResponseEntity<>(new Student(), HttpStatus.OK);
}
}