Skip to content

Instantly share code, notes, and snippets.

@abhishek-sisodiya
Last active July 30, 2019 10:16
Show Gist options
  • Save abhishek-sisodiya/d1b386443e0357cbf69b517e4562616a to your computer and use it in GitHub Desktop.
Save abhishek-sisodiya/d1b386443e0357cbf69b517e4562616a to your computer and use it in GitHub Desktop.
package com.org.project.theWeatherMan.controller;
/**
* This controller class handle request/response for summary provider.
*
* @author abhishek.sisodiya
* @since 03/07/2019.
*/
@RestController
public class SummaryProviderController {
@Autowired
private SummaryProviderService summaryProviderService;
@ApiOperation(value = "Returns precise provider.")
@RequestMapping(value = "/summaryprovider", method = RequestMethod.GET)
public ResponseEntity createAuthenticationToken()
throws Exception {
return new ResponseEntity(
new CustomResponseEntity().getResponseObject(summaryProviderService.summaryProvider()),
HttpStatus.OK);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment