Last active
July 30, 2019 10:16
-
-
Save abhishek-sisodiya/d1b386443e0357cbf69b517e4562616a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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