All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.muenchendigital.digiwf.verification.integration.registration.api.controller.ExampleController Maven / Gradle / Ivy

There is a newer version: 0.18.0
Show newest version
package io.muenchendigital.digiwf.verification.integration.registration.api.controller;

import io.muenchendigital.digiwf.verification.integration.registration.domain.model.Registration;
import io.muenchendigital.digiwf.verification.integration.registration.domain.service.RegistrationService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Controller to the registration without streaming infrastructure.
 */
@RestController
@RequiredArgsConstructor
@Slf4j
public class ExampleController {

    private final RegistrationService registrationService;

    @GetMapping(value = "/getVerificationLink")
    public void getVerificationLink() {
        log.debug("Incoming request for verification token");
        final Registration registration = new Registration();
        registration.setMessageName("emailVerified");
        registration.setProcessInstanceId("1234567890");
        try {
            registrationService.getVerificationLink(registration);
        } catch (final Exception e) {
            log.error(e.toString());
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy