I have the below code for which i use to consume data through a REST API using http.post() method in angular 5.
return this._http.post(this.basePath,null, {
      headers: this.myHeaders,
      params: {
        transaction_id : "22"
      } ,
      observe: 'response',
      responseType: 'json'
    })
      .catch(this._errorHandler);
i can successfully fetch the data using the http.get() , but i get a 500 (Internal Server Error) when using post.
What might i be missing?
