@UserResource @RestController @RequestMapping(path="api/v1/consents") public class ConsentController extends Object
| Constructor and Description |
|---|
ConsentController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<org.springframework.hateoas.Resource<CreateConsentResponseTO>> |
createConsent(@Valid ConsentTO consent,
BankApiTO bankApi) |
org.springframework.http.HttpEntity<Void> |
deleteConsent(String consentId) |
org.springframework.hateoas.Resource<ConsentTO> |
getConsent(String consentId) |
org.springframework.hateoas.Resource<ConsentTO> |
getConsentByRedirectId(String redirectId) |
org.springframework.hateoas.Resources<org.springframework.hateoas.Resource<ConsentTO>> |
getConsents() |
org.springframework.hateoas.Resource<ConsentStatusTO> |
getConsentStatus(String consentId) |
org.springframework.http.ResponseEntity<Void> |
submitAuthorisationCode(String consentId,
@Valid TokenRequestTO tokenRequest) |
@PostMapping public org.springframework.http.ResponseEntity<org.springframework.hateoas.Resource<CreateConsentResponseTO>> createConsent(@Valid @RequestBody @Valid ConsentTO consent, @RequestParam(required=false) BankApiTO bankApi)
@GetMapping public org.springframework.hateoas.Resources<org.springframework.hateoas.Resource<ConsentTO>> getConsents()
@GetMapping(value="/{consentId}")
public org.springframework.hateoas.Resource<ConsentTO> getConsent(@PathVariable(value="consentId")
String consentId)
@GetMapping(value="/{consentId}/status")
public org.springframework.hateoas.Resource<ConsentStatusTO> getConsentStatus(@PathVariable(value="consentId")
String consentId)
@GetMapping(value="redirect/{redirectId}")
public org.springframework.hateoas.Resource<ConsentTO> getConsentByRedirectId(@PathVariable(value="redirectId")
String redirectId)
@DeleteMapping(value="/{consentId}")
public org.springframework.http.HttpEntity<Void> deleteConsent(@PathVariable
String consentId)
@PostMapping(value="/{consentId}/token")
public org.springframework.http.ResponseEntity<Void> submitAuthorisationCode(@PathVariable
String consentId,
@RequestBody @Valid
@Valid TokenRequestTO tokenRequest)
Copyright © 2020. All rights reserved.