Я пытаюсь сгенерировать документацию по swagger, но она не генерируется для моего проекта maven, который использует restlet-
Вот pom.xml-
<dependency>
<groupId>org.restlet.jee</groupId>
<artifactId>org.restlet</artifactId>
<version>${restlet-version}</version>
</dependency>
<dependency>
<groupId>org.restlet.jse</groupId>
<artifactId>org.restlet.ext.jackson</artifactId>
<version>${restlet-version}</version>
</dependency>
<dependency>
<groupId>org.restlet.jse</groupId>
<artifactId>org.restlet.ext.swagger</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
Вот мой код приложения -
public class UserApplication extends SwaggerApplication {
@Override
public Restlet createInboundRoot() {
Router rootRouter2 = new Router(getContext());
rootRouter2.attach(getUserRouterName, UserRest.class);
rootRouter2.setDefaultMatchingMode(Template.MODE_STARTS_WITH);
rootRouter2.setRoutingMode(Router.MODE_LAST_MATCH);
attachSwaggerSpecificationRestlet(rootRouter2, "/api-doc");
// Protect the set of resources
ChallengeAuthenticator authenticatior = createAuthenticator();
authenticatior.setNext(rootRouter2);
return authenticatior;
}
}
Я использую следующий официальный документ - https://restlet.com/open-source/documentation/user-guide/2.3/extensions/swagger
Когда я нажимаю на URL - http://localhost:9546/api-doc,, я получаю 404 not found
.