Class StewardController

java.lang.Object
gov.niem.tools.api.db.steward.StewardController

@Validated @RestController public class StewardController extends Object
REST controller for stewards.
  • Constructor Details

    • StewardController

      public StewardController()
  • Method Details

    • getSteward

      @GetMapping("/stewards/{stewardKey}") @ResponseStatus(code=OK) public Steward getSteward(@PathVariable String stewardKey) throws EntityNotFoundException
      Get a steward.
      Throws:
      EntityNotFoundException
    • getStewards

      @GetMapping("/stewards") @ResponseStatus(code=OK) public List<Steward> getStewards() throws Exception
      Get all stewards.
      Throws:
      Exception
    • countStewards

      @GetMapping("/stewards/count") @ResponseStatus(code=OK) public long countStewards()
      Get the count of all stewards.