Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
fabrizzio-dotCMS committed Aug 30, 2024
1 parent d2aba46 commit ec70889
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@
*
*/

@ApplicationPath("/api")
@OpenAPIDefinition(
info = @Info(
title = "dotCMS REST API",
version = "3"),
servers = @Server(
description = "dotCMS Server",
url = "/api"),
url = "/"),
tags = {
@Tag(name = "Workflow"),
@Tag(name = "Page"),
Expand All @@ -43,22 +44,19 @@
@Tag(name = "Content Report")
}
)

@ApplicationPath("/api")
public class DotRestApplication extends ResourceConfig {

public DotRestApplication() {

register(MultiPartFeature.class).
register(JacksonJaxbJsonProvider.class).
register(OpenApiResource.class).
register(AcceptHeaderOpenApiResource.class).
registerClasses(customClasses.keySet()).
packages(
"com.dotcms.rest",
"com.dotcms.contenttype.model.field",
"com.dotcms.rendering.js",
"com.dotcms.ai.rest"
"com.dotcms.ai.rest",
"io.swagger.v3.jaxrs2"
);
}

Expand Down

0 comments on commit ec70889

Please sign in to comment.