@@ -46,7 +46,7 @@ export class PostService {
46
46
47
47
public postWithBodyParameter ( model : PostModel , httpOptions : { } = undefined ) : Observable < void > {
48
48
let subject = new Subject < void > ( ) ;
49
- this . http . post < void > ( this . serviceUrl + "/post/postwithbodyparameter" + "? model=" + this . convertAny ( model ) , httpOptions ) . subscribe ( ( ) => {
49
+ this . http . post < void > ( this . serviceUrl + "/post/postwithbodyparameter" , model , httpOptions ) . subscribe ( ( ) => {
50
50
subject . next ( ) ;
51
51
subject . complete ( ) ;
52
52
} , ( error ) => subject . error ( error ) ) ;
@@ -55,7 +55,7 @@ export class PostService {
55
55
56
56
public postWithValueAndBodyParameter ( id : number , model : PostModel , httpOptions : { } = undefined ) : Observable < void > {
57
57
let subject = new Subject < void > ( ) ;
58
- this . http . post < void > ( this . serviceUrl + "/post/postwithvalueandbodyparameter" + "?id=" + this . convertAny ( id ) + "& model=" + this . convertAny ( model ) , httpOptions ) . subscribe ( ( ) => {
58
+ this . http . post < void > ( this . serviceUrl + "/post/postwithvalueandbodyparameter" + "?id=" + this . convertAny ( id ) , model , httpOptions ) . subscribe ( ( ) => {
59
59
subject . next ( ) ;
60
60
subject . complete ( ) ;
61
61
} , ( error ) => subject . error ( error ) ) ;
@@ -64,7 +64,7 @@ export class PostService {
64
64
65
65
public postWithValueAndBodyParameterFlipped ( model : PostModel , id : number , httpOptions : { } = undefined ) : Observable < void > {
66
66
let subject = new Subject < void > ( ) ;
67
- this . http . post < void > ( this . serviceUrl + "/post/postwithvalueandbodyparameterflipped" + "?model=" + this . convertAny ( model ) + "& id=" + this . convertAny ( id ) , httpOptions ) . subscribe ( ( ) => {
67
+ this . http . post < void > ( this . serviceUrl + "/post/postwithvalueandbodyparameterflipped" + "?id=" + this . convertAny ( id ) , model , httpOptions ) . subscribe ( ( ) => {
68
68
subject . next ( ) ;
69
69
subject . complete ( ) ;
70
70
} , ( error ) => subject . error ( error ) ) ;
0 commit comments