I need your help with a interesting problem: I want to use swagger for easy API Documentation and I got two classes: a versionController and a PersonController. The version controller has 2 annotations:
- @RestController
- @Requestmapping(value = "/version")
While the person controller has one annotation on top:
-@RepositoryRestController
And has the following annotation on the create Person Method:
-@RequestMapping(method = RequestMethod.POST, value = "/persons")
-@RequestMapping(value = "/persons/{id}", method = RequestMethod.PUT)
My question is this. Why is versionController visible in swagger and is PersonController not? I mean, personcontroller has the mappings right, so swagger can 'see' it? The source documentation didn't had any information on it, so I hope you guys/girls can help me out. Thanks in advance!
Greetings, Frederick