Any idea how to give the body with get request?
I am using the following but I am not getting any response (I am getting a response in Postman so API works):
async componentDidMount() {
const requestOptions = {
method: 'GET',
body: JSON.stringify({ "email": "sandhu@abc.com" })
};
const {data} = await DayPilot.Http.get('http://localhost:8089/employee/findbyemail', requestOptions);
this.setState({resources: data});
}