File tree Expand file tree Collapse file tree 2 files changed +75
-2
lines changed
springdoc-openapi-common/src/main/java/org/springdoc/core/filters
springdoc-openapi-webmvc-core/src/test/resources/results Expand file tree Collapse file tree 2 files changed +75
-2
lines changed Original file line number Diff line number Diff line change 27
27
* @author michael.clarke
28
28
*/
29
29
@ FunctionalInterface
30
- public interface MethodFilter {
30
+ public interface OpenApiMethodFilter {
31
31
32
32
/**
33
33
* Whether the given method should be included in the generated OpenApi definitions. Only methods from classes
@@ -39,5 +39,6 @@ public interface MethodFilter {
39
39
* @param method the method to perform checks against
40
40
* @return whether this method should be used for further processing
41
41
*/
42
- boolean includeMethodInOpenApi (Method method );
42
+ boolean isMethodToInclude (Method method );
43
+
43
44
}
Original file line number Diff line number Diff line change
1
+ {
2
+ "openapi" : " 3.0.1" ,
3
+ "info" : {
4
+ "title" : " OpenAPI definition" ,
5
+ "version" : " v0"
6
+ },
7
+ "servers" : [
8
+ {
9
+ "url" : " http://localhost" ,
10
+ "description" : " Generated server url"
11
+ }
12
+ ],
13
+ "paths" : {
14
+ "/annotated" : {
15
+ "get" : {
16
+ "tags" : [
17
+ " annotated-controller"
18
+ ],
19
+ "operationId" : " annotatedGet" ,
20
+ "responses" : {
21
+ "200" : {
22
+ "description" : " OK" ,
23
+ "content" : {
24
+ "*/*" : {
25
+ "schema" : {
26
+ "type" : " string"
27
+ }
28
+ }
29
+ }
30
+ }
31
+ }
32
+ },
33
+ "put" : {
34
+ "tags" : [
35
+ " annotated-controller"
36
+ ],
37
+ "operationId" : " annotatedPut" ,
38
+ "responses" : {
39
+ "200" : {
40
+ "description" : " OK" ,
41
+ "content" : {
42
+ "*/*" : {
43
+ "schema" : {
44
+ "type" : " string"
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ },
51
+ "post" : {
52
+ "tags" : [
53
+ " annotated-controller"
54
+ ],
55
+ "operationId" : " annotatedPost" ,
56
+ "responses" : {
57
+ "200" : {
58
+ "description" : " OK" ,
59
+ "content" : {
60
+ "*/*" : {
61
+ "schema" : {
62
+ "type" : " string"
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
69
+ }
70
+ },
71
+ "components" : {}
72
+ }
You can’t perform that action at this time.
0 commit comments