Skip to content

Is it possible to order(sort) request methods (POST,GET,PUT,DELETE) in Swagger-UI using swagger-jaxrs2 with Sring boot + Jersey controller API? #3695

@tGuichin

Description

@tGuichin

Currently the swagger-jaxrs2 generated Swagger-UI has no order for each "GET", "PUT", "POST"... etc method. It randomly spits the endpoints out as it pleases. Is there a way to sort them? I tried using @JsonPropertyOrder({"POST","GET","PUT","DELETE"}) , which is the order I would like them in, but to no success. Also tried @JsonPropertyOrder(alphabetic = true) . This annotation was included in the Jersey Controller class.

I'm using:

<dependency>
	<groupId>io.swagger.core.v3</groupId>
	<artifactId>swagger-jaxrs2</artifactId>
	<version>2.1.4</version>
</dependency>

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