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:
Esteban Marin
2017-10-24 16:51:58 +02:00
committed by wing328
parent 1f9dc4dd2e
commit 66cbab1947
7 changed files with 154 additions and 120 deletions

View File

@@ -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
*