Class ObaConsentController
- java.lang.Object
-
- de.adorsys.ledgers.oba.rest.server.resource.oba.ObaConsentController
-
- All Implemented Interfaces:
ObaConsentApi
@RestController @RequestMapping("/api/v1/consents") public class ObaConsentController extends Object implements ObaConsentApi
-
-
Field Summary
-
Fields inherited from interface de.adorsys.ledgers.oba.rest.api.resource.oba.ObaConsentApi
BASE_PATH
-
-
Constructor Summary
Constructors Constructor Description ObaConsentController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<Void>confirm(String userLogin, String consentId, String authorizationId, String tan)org.springframework.http.ResponseEntity<List<ObaAisConsent>>consents(String userLogin)org.springframework.http.ResponseEntity<de.adorsys.ledgers.util.domain.CustomPageImpl<ObaAisConsent>>consentsPaged(String userLogin, int page, int size)org.springframework.http.ResponseEntity<Void>createPiis(CreatePiisConsentRequestTO request)org.springframework.http.ResponseEntity<Boolean>revokeConsent(String consentId)org.springframework.http.ResponseEntity<List<TppInfoTO>>tpps()
-
-
-
Method Detail
-
consents
@PreAuthorize("#userLogin == authentication.principal.login") public org.springframework.http.ResponseEntity<List<ObaAisConsent>> consents(String userLogin)- Specified by:
consentsin interfaceObaConsentApi
-
consentsPaged
@PreAuthorize("#userLogin == authentication.principal.login") public org.springframework.http.ResponseEntity<de.adorsys.ledgers.util.domain.CustomPageImpl<ObaAisConsent>> consentsPaged(String userLogin, int page, int size)- Specified by:
consentsPagedin interfaceObaConsentApi
-
revokeConsent
public org.springframework.http.ResponseEntity<Boolean> revokeConsent(String consentId)
- Specified by:
revokeConsentin interfaceObaConsentApi
-
confirm
public org.springframework.http.ResponseEntity<Void> confirm(String userLogin, String consentId, String authorizationId, String tan)
- Specified by:
confirmin interfaceObaConsentApi
-
createPiis
public org.springframework.http.ResponseEntity<Void> createPiis(CreatePiisConsentRequestTO request)
- Specified by:
createPiisin interfaceObaConsentApi
-
tpps
public org.springframework.http.ResponseEntity<List<TppInfoTO>> tpps()
- Specified by:
tppsin interfaceObaConsentApi
-
-