Package io.meeds.deeds.web.rest
Class TenantController
- java.lang.Object
-
- io.meeds.deeds.web.rest.TenantController
-
@RestController @RequestMapping("/api/tenant") public class TenantController extends Object
-
-
Constructor Summary
Constructors Constructor Description TenantController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringlastCommand(long nftId, Principal principal)voidstartTenant(long nftId, String email, String transactionHash, Principal principal)voidstopTenant(long nftId, String transactionHash, Principal principal)voidupdateEmail(long nftId, String email, Principal principal)
-
-
-
Method Detail
-
lastCommand
@GetMapping("/{nftId}/lastCommand") @RolesAllowed("USER") public String lastCommand(@PathVariable(name="nftId") long nftId, Principal principal)
-
startTenant
@PostMapping("/{nftId}") @RolesAllowed("USER") public void startTenant(@PathVariable(name="nftId") long nftId, @RequestParam(name="email") String email, @RequestParam(name="transactionHash") String transactionHash, Principal principal)
-
stopTenant
@DeleteMapping("/{nftId}") @RolesAllowed("USER") public void stopTenant(@PathVariable(name="nftId") long nftId, @RequestParam(name="transactionHash") String transactionHash, Principal principal)
-
-