Skip to content

GroupedOpenApi returns 404 for /v3/api-docs/groupName #1016

@Fredrik5

Description

@Fredrik5

Hey there,

i am using kind of default configuration as I saw that in demos project.

My only dependecy is

<dependency> <groupId>org.springdoc</groupId> <artifactId>springdoc-openapi-ui</artifactId> <version>1.5.2</version> </dependency>

Configurations

@Bean
public GroupedOpenApi vehicle() {
	String paths[] = { "/**/vehicle/**" };
	return GroupedOpenApi.builder().setGroup("codetable").pathsToMatch(paths)
			.build();
}


@Bean
public GroupedOpenApi codetable() {
	String paths[] = { "/**/codetable/**" };
	return GroupedOpenApi.builder().setGroup("codetable").pathsToMatch(paths)
			.build();
}

applicaiton.properties
springdoc.api-docs.groups.enabled=true

And that's it. I have couple scenarions which works.

http://localhost:10015/restapi-vehicle/services/rest/v3/api-docs - works, returns all paths and other info

http://localhost:10015/restapi-vehicle/services/rest/swagger-ui/index.html?configUrl=/restapi-vehicle/services/rest/v3/api-docs/swagger-config - works

http://localhost:10015/restapi-vehicle/services/rest/v3/api-docs/swagger-config - works, returning urls for my GroupedOpenApi beans

But the groupName EPs returns 404
http://localhost:10015/restapi-vehicle/services/rest/v3/api-docs/vehicle
http://localhost:10015/restapi-vehicle/services/rest/v3/api-docs/codetable

image

Is the 1.5.2 release has a bug for groupName configs or am I missing something in the configurations?

Thank for your time

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions