title: How to pass request model to get API on Angular 7/8?
body: <p>I have Get Api to get users data where I can pass a request model to search users list based on request model.
  Its working fine on Postman but while I am trying to implement same in Angular 7 and 8 its not working.</p>
  
  <p>Please guide me how can I implement.</p>
  
  <p>My implementation is as below</p>
  
  <p><strong>Postman</strong> </p>
  
  <pre><code>    URL = http://localhost:64888/api/Users/SearchUsers     
      Header : Content-Type = application/json
  
      Body = 
      {
          "firstname" : "value",
          "lastname" : "value",
          "emailid" : "value",
          "usertype" : "value",
      }
  </code></pre>
  
  <p><strong>Postman Result:</strong> Its working fine and gives users list</p>
  
  <p><strong>Request Model</strong></p>
  
  <pre><code>export class UserRequest {  
       firstname : string;
       lastname : string;
      emailid : string;
      usertype : string;
      }
  </code></pre>
  
  <p><strong>User Service</strong></p>
  
  <pre><code>    export class UserService {
  
        constructor(private http: HttpClient) { }
  
        SearchUsers(requestParam : UserRequest) : Observable&lt;any&gt;{  
  
          const httpOptions = {
            headers: { 
            'Content-Type': 'application/json',
            'Authorization' : 'Bearer Tokenvalue'
            },
            params: requestParam
          };
  
          return this.http.get("http://localhost:64888/api/Users/SearchUsers", httpOptions); 
        }
      }
  </code></pre>
  
  <p><strong>User Component</strong></p>
  
  <pre><code>   export class UserComponent implements OnInit {
  
       constructor(private userService : UserService) { }
  
       ngOnInit() {
  
         var requestParam : UserRequest;
         requestParam.firstname = "r";
         requestParam.lastname = "";
         requestParam.emailid = "";
         requestParam.usertype = "user";
  
         this.userService.SearchUsers(requestParam)
           .subscribe( 
             data =&gt; {
               console.log(data);
             }
            )
       }
     }
  
  </code></pre>