@@ -108,7 +108,7 @@ public boolean getHasExamples() {
108
108
*
109
109
* @return true if act as Restful index method, false otherwise
110
110
*/
111
- public boolean isRestfulIndex () {
111
+ public boolean getIsRestfulIndex () {
112
112
return "GET" .equals (httpMethod ) && "" .equals (pathWithoutBaseName ());
113
113
}
114
114
@@ -117,7 +117,7 @@ public boolean isRestfulIndex() {
117
117
*
118
118
* @return true if act as Restful show method, false otherwise
119
119
*/
120
- public boolean isRestfulShow () {
120
+ public boolean getIsRestfulShow () {
121
121
return "GET" .equalsIgnoreCase (httpMethod ) && isMemberPath ();
122
122
}
123
123
@@ -126,7 +126,7 @@ public boolean isRestfulShow() {
126
126
*
127
127
* @return true if act as Restful create method, false otherwise
128
128
*/
129
- public boolean isRestfulCreate () {
129
+ public boolean getIsRestfulCreate () {
130
130
return "POST" .equalsIgnoreCase (httpMethod ) && "" .equals (pathWithoutBaseName ());
131
131
}
132
132
@@ -135,7 +135,7 @@ public boolean isRestfulCreate() {
135
135
*
136
136
* @return true if act as Restful update method, false otherwise
137
137
*/
138
- public boolean isRestfulUpdate () {
138
+ public boolean getIsRestfulUpdate () {
139
139
return Arrays .asList ("PUT" , "PATCH" ).contains (httpMethod .toUpperCase ()) && isMemberPath ();
140
140
}
141
141
@@ -144,7 +144,7 @@ public boolean isRestfulUpdate() {
144
144
*
145
145
* @return true request method is PUT, PATCH or POST; false otherwise
146
146
*/
147
- public boolean isBodyAllowed () {
147
+ public boolean getIsBodyAllowed () {
148
148
return Arrays .asList ("PUT" , "PATCH" , "POST" ).contains (httpMethod .toUpperCase ());
149
149
}
150
150
@@ -153,7 +153,7 @@ public boolean isBodyAllowed() {
153
153
*
154
154
* @return true if act as Restful destroy method, false otherwise
155
155
*/
156
- public boolean isRestfulDestroy () {
156
+ public boolean getIsRestfulDestroy () {
157
157
return "DELETE" .equalsIgnoreCase (httpMethod ) && isMemberPath ();
158
158
}
159
159
@@ -162,8 +162,8 @@ public boolean isRestfulDestroy() {
162
162
*
163
163
* @return true if Restful-style, false otherwise
164
164
*/
165
- public boolean isRestful () {
166
- return isRestfulIndex () || isRestfulShow () || isRestfulCreate () || isRestfulUpdate () || isRestfulDestroy ();
165
+ public boolean getIsRestful () {
166
+ return getIsRestfulIndex () || getIsRestfulShow () || getIsRestfulCreate () || getIsRestfulUpdate () || getIsRestfulDestroy ();
167
167
}
168
168
169
169
/**
@@ -467,30 +467,6 @@ public String getOperationIdSnakeCase() {
467
467
return operationIdSnakeCase ;
468
468
}
469
469
470
- public Boolean getIsRestfulIndex () {
471
- return getBooleanValue (CodegenConstants .IS_RESTFUL_INDEX_EXT_NAME );
472
- }
473
-
474
- public Boolean getIsRestfulShow () {
475
- return getBooleanValue (CodegenConstants .IS_RESTFUL_SHOW_EXT_NAME );
476
- }
477
-
478
- public Boolean getIsRestfulCreate () {
479
- return getBooleanValue (CodegenConstants .IS_RESTFUL_CREATE_EXT_NAME );
480
- }
481
-
482
- public Boolean getIsRestfulUpdate () {
483
- return getBooleanValue (CodegenConstants .IS_RESTFUL_UPDATE_EXT_NAME );
484
- }
485
-
486
- public Boolean getIsRestfulDestroy () {
487
- return getBooleanValue (CodegenConstants .IS_RESTFUL_DESTROY_EXT_NAME );
488
- }
489
-
490
- public Boolean getIsRestful () {
491
- return getBooleanValue (CodegenConstants .IS_RESTFUL_EXT_NAME );
492
- }
493
-
494
470
public Boolean getIsDeprecated () {
495
471
return getBooleanValue (CodegenConstants .IS_DEPRECATED_EXT_NAME );
496
472
}
0 commit comments