forked from loafle/openapi-generator-original
Bugfix/6649 angular http client empty body (#6754)
* fix empty body issue * #6649: add line break * #6649: improve indentation * #6649: improve indentation * #6649: generate code * #6649: generate samples * #6649: fix method docs
This commit is contained in:
@@ -140,6 +140,15 @@ public class CodegenOperation {
|
||||
return Arrays.asList("PUT", "PATCH").contains(httpMethod.toUpperCase()) && isMemberPath();
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if body param is allowed for the request method
|
||||
*
|
||||
* @return true request method is PUT, PATCH or POST; false otherwise
|
||||
*/
|
||||
public boolean isBodyAllowed() {
|
||||
return Arrays.asList("PUT", "PATCH", "POST").contains(httpMethod.toUpperCase());
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if act as Restful destroy method
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user