[BAEL-14274] - Fixed article code for https://www.baeldung.com/swagger-2-documentation-for-spring-rest-api
This commit is contained in:
parent
9d7d7b4dde
commit
559de5cfd6
|
@ -0,0 +1,14 @@
|
||||||
|
package org.baeldung.web.controller;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMethod;
|
||||||
|
|
||||||
|
@Controller
|
||||||
|
public class CustomController {
|
||||||
|
|
||||||
|
@RequestMapping(value = "/custom", method = RequestMethod.POST)
|
||||||
|
public String custom() {
|
||||||
|
return "custom";
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue