-
-
Notifications
You must be signed in to change notification settings - Fork 513
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restentpoints with same name get mix up. Fixes #2876
- Loading branch information
1 parent
ee5ab03
commit cdfaf63
Showing
4 changed files
with
118 additions
and
39 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
...arter-webmvc-api/src/test/java/test/org/springdoc/api/v31/app240/SpringDocApp240Test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* | ||
* * | ||
* * * | ||
* * * * | ||
* * * * * | ||
* * * * * * Copyright 2019-2025 the original author or authors. | ||
* * * * * * | ||
* * * * * * Licensed under the Apache License, Version 2.0 (the "License"); | ||
* * * * * * you may not use this file except in compliance with the License. | ||
* * * * * * You may obtain a copy of the License at | ||
* * * * * * | ||
* * * * * * https://www.apache.org/licenses/LICENSE-2.0 | ||
* * * * * * | ||
* * * * * * Unless required by applicable law or agreed to in writing, software | ||
* * * * * * distributed under the License is distributed on an "AS IS" BASIS, | ||
* * * * * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* * * * * * See the License for the specific language governing permissions and | ||
* * * * * * limitations under the License. | ||
* * * * * | ||
* * * * | ||
* * * | ||
* * | ||
* | ||
*/ | ||
|
||
package test.org.springdoc.api.v31.app240; | ||
|
||
import test.org.springdoc.api.v31.AbstractSpringDocTest; | ||
|
||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
|
||
public class SpringDocApp240Test extends AbstractSpringDocTest { | ||
|
||
@SpringBootApplication | ||
static class SpringDocTestApp { | ||
|
||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
...tarter-webmvc-api/src/test/java/test/org/springdoc/api/v31/app240/WildcardController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* | ||
* * | ||
* * * | ||
* * * * | ||
* * * * * | ||
* * * * * * Copyright 2019-2025 the original author or authors. | ||
* * * * * * | ||
* * * * * * Licensed under the Apache License, Version 2.0 (the "License"); | ||
* * * * * * you may not use this file except in compliance with the License. | ||
* * * * * * You may obtain a copy of the License at | ||
* * * * * * | ||
* * * * * * https://www.apache.org/licenses/LICENSE-2.0 | ||
* * * * * * | ||
* * * * * * Unless required by applicable law or agreed to in writing, software | ||
* * * * * * distributed under the License is distributed on an "AS IS" BASIS, | ||
* * * * * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* * * * * * See the License for the specific language governing permissions and | ||
* * * * * * limitations under the License. | ||
* * * * * | ||
* * * * | ||
* * * | ||
* * | ||
* | ||
*/ | ||
|
||
package test.org.springdoc.api.v31.app240; | ||
|
||
import io.swagger.v3.oas.annotations.Operation; | ||
import jakarta.servlet.http.HttpServletRequest; | ||
|
||
import org.springframework.web.bind.annotation.PostMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
@RestController | ||
public class WildcardController { | ||
@PostMapping("/**") | ||
@Operation(summary = "My Wildcard Operation") | ||
public String getItem(HttpServletRequest request) { | ||
return request.getPathInfo(); | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app240.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"openapi": "3.1.0", | ||
"info": { | ||
"title": "OpenAPI definition", | ||
"version": "v0" | ||
}, | ||
"servers": [ | ||
{ | ||
"url": "http://localhost", | ||
"description": "Generated server url" | ||
} | ||
], | ||
"paths": { | ||
"/**": { | ||
"post": { | ||
"tags": [ | ||
"wildcard-controller" | ||
], | ||
"summary": "My Wildcard Operation", | ||
"operationId": "getItem", | ||
"responses": { | ||
"200": { | ||
"description": "OK", | ||
"content": { | ||
"*/*": { | ||
"schema": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"components": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters