Class ConsentController


  • @UserResource
    @RestController
    @RequestMapping(path="api/v1/consents")
    public class ConsentController
    extends java.lang.Object
    • Constructor Detail

      • ConsentController

        public ConsentController()
    • 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)