Skip to content

Commit 193d873

Browse files
committed
added oas annotation
1 parent 0e553da commit 193d873

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/java/de/codecentric/apifirstspringboot/controller/NewsController.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77
import org.springframework.stereotype.Controller;
88
import org.springframework.web.bind.annotation.GetMapping;
99
import org.springframework.web.bind.annotation.RequestMapping;
10+
import springfox.documentation.oas.annotations.EnableOpenApi;
1011

1112
import java.util.List;
1213

14+
@EnableOpenApi
1315
@RequestMapping("/api")
1416
@Controller
1517
public class NewsController {

0 commit comments

Comments
 (0)