2

Spring fox:

@ApiOperation(value = "Gets the status for ID",
   consumes = "application/json",
   produces = "application/json",
   response = xyz.class)

Springdoc :

@Operation(summary = "Gets the status for ID",
   consumes = "application/json",
   produces = "application/json",
   response = xyz.class)

Here I'm able to replace value with summary but no idea what to use in place of consumes, produces, response can anyone help?

I tried to use @Tags but it is not working. Could someone suggest a solution to this issue?

1 Answer 1

1

I have used @RouterOperation to resolve my issue

  @RouterOperation(operation = @Operation(summary = "Gets the status for ID"),
          consumes = "application/json",
          produces = "application/json",
          parameterTypes = xyz.class)
Sign up to request clarification or add additional context in comments.

2 Comments

If you have solved your problem yourself, mark the answer as accepted to close the thread.
@M.Dudek I tried doing that but it says : "You can accept your own answer in 22 hours"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.