I want to set "API Key" and "Accept" in HTTP header. I would also like to add auth-token, page-no, page-size in the body. Can anybody help me?
Below is the code snippet I tried so far :
const body = {
            auth_token: '',
            type: 'matrix',
            page_no: '1',
            page_size: '20',
            keyword: 'j',
        };
        const header = new HttpHeaders();
        header.append('X-API-KEY', '');
        header.append('Accept', 'application/json');
         return this.http.get('', { headers: header} **body**)
            .map
            (
                (reponse: Response) => {
                    const resp = reponse.json();
                    return resp;
                }
            );
    }
 
     
     
    