Package de.adorsys.multibanking.web
Class ConsentController
- java.lang.Object
-
- de.adorsys.multibanking.web.ConsentController
-
@UserResource @RestController @RequestMapping(path="api/v1/consents") public class ConsentController extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ConsentController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<org.springframework.hateoas.Resource<CreateConsentResponseTO>>createConsent(@Valid ConsentTO consent, BankApiTO bankApi)org.springframework.http.HttpEntity<java.lang.Void>deleteConsent(java.lang.String consentId)org.springframework.hateoas.Resource<ConsentTO>getConsent(java.lang.String consentId)org.springframework.hateoas.Resource<ConsentTO>getConsentByRedirectId(java.lang.String redirectId)org.springframework.hateoas.Resources<org.springframework.hateoas.Resource<ConsentTO>>getConsents()org.springframework.hateoas.Resource<ConsentStatusTO>getConsentStatus(java.lang.String consentId)org.springframework.http.ResponseEntity<java.lang.Void>submitAuthorisationCode(java.lang.String consentId, @Valid TokenRequestTO tokenRequest)
-
-
-
Method Detail
-
createConsent
@PostMapping public org.springframework.http.ResponseEntity<org.springframework.hateoas.Resource<CreateConsentResponseTO>> createConsent(@Valid @RequestBody @Valid ConsentTO consent, @RequestParam(required=false) BankApiTO bankApi)
-
getConsents
@GetMapping public org.springframework.hateoas.Resources<org.springframework.hateoas.Resource<ConsentTO>> getConsents()
-
getConsent
@GetMapping("/{consentId}") public org.springframework.hateoas.Resource<ConsentTO> getConsent(@PathVariable("consentId") java.lang.String consentId)
-
getConsentStatus
@GetMapping("/{consentId}/status") public org.springframework.hateoas.Resource<ConsentStatusTO> getConsentStatus(@PathVariable("consentId") java.lang.String consentId)
-
getConsentByRedirectId
@GetMapping("redirect/{redirectId}") public org.springframework.hateoas.Resource<ConsentTO> getConsentByRedirectId(@PathVariable("redirectId") java.lang.String redirectId)
-
deleteConsent
@DeleteMapping("/{consentId}") public org.springframework.http.HttpEntity<java.lang.Void> deleteConsent(@PathVariable java.lang.String consentId)
-
submitAuthorisationCode
@PostMapping("/{consentId}/token") public org.springframework.http.ResponseEntity<java.lang.Void> submitAuthorisationCode(@PathVariable java.lang.String consentId, @RequestBody @Valid @Valid TokenRequestTO tokenRequest)
-
-