Class ElectionsController

java.lang.Object
info.ejava.examples.svc.docker.votes.controllers.ElectionsController

@RestController @RequestMapping("/api/elections") public class ElectionsController extends Object
  • Field Details

  • Constructor Details

    • ElectionsController

      public ElectionsController()
  • Method Details

    • getVoteCounts

      @GetMapping(value="counts", produces="application/json") public org.springframework.http.ResponseEntity<ElectionResultsDTO> getVoteCounts()