Package io.meeds.deeds.web.rest
Class TenantController
java.lang.Object
io.meeds.deeds.web.rest.TenantController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DeedTenantPresentation>getDeedTenant(Principal principal, boolean refreshFromBlockchain, Long nftId) org.springframework.http.ResponseEntity<String>getDeedTenantStartTime(Long nftId) getTenants(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)
-
Constructor Details
-
TenantController
public TenantController()
-
-
Method Details
-
getTenants
@GetMapping(produces="application/json") public List<DeedTenantPresentation> getTenants(Principal principal) -
getDeedTenant
@GetMapping("/{nftId}") @RolesAllowed("USER") public org.springframework.http.ResponseEntity<DeedTenantPresentation> getDeedTenant(Principal principal, @RequestHeader(name="X-REFRESH",required=false) boolean refreshFromBlockchain, @PathVariable(name="nftId") Long nftId) -
getDeedTenantStartTime
-
startTenant
-
stopTenant
-
updateEmail
-