Now let’s create the service that will be responsible for fetching the posts from the server. Build the Posts Service — We need to listen to GET_POSTS action, then call our service and based on the response status to do the following thing: If the response is successful, dispatch GET_POSTS_SUCCESS action with the result.If the request fails, dispatch GET_POSTS_FAIL action with the error.These are