We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@RestController public class HelloController { @GetMapping(value = "/hello/index") public String index() { return "Greetings Hello from Spring Boot!"; } }
@RestController public class HiController { @GetMapping(value = "/hi/index") public String index() { return "Greetings Hi from Spring Boot!"; } }
In springdoc, it will generate two operations with operationId: index and index_1.
index
index_1
{ "openapi": "3.0.1", "info": { "title": "OpenAPI definition", "version": "v0" }, "servers": [ { "url": "http://localhost:8080", "description": "Generated server url" } ], "tags": [], "paths": { "/hi/index": { "get": { "tags": ["hi-controller"], "operationId": "index", "responses": { "200": { "description": "OK", "content": { "*/*": { "schema": { "type": "string" } } } } } } }, "/hello/index": { "get": { "tags": ["hello-controller"], "operationId": "index_1", "responses": { "200": { "description": "OK", "content": { "*/*": { "schema": { "type": "string" } } } } } } } }, "components": { "schemas": {} } }
Can we config operationId to controller name + method name?
Such as hiControllerIndex and helloControllerIndex?
hiControllerIndex
helloControllerIndex
The text was updated successfully, but these errors were encountered:
see #675 (comment)
Sorry, something went wrong.
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
In springdoc, it will generate two operations with operationId:
index
andindex_1
.Can we config operationId to controller name + method name?
Such as
hiControllerIndex
andhelloControllerIndex
?The text was updated successfully, but these errors were encountered: