package com.iqser.red.persistence.service.v2.external.api.impl.controller;

import com.iqser.red.persistence.service.v1.external.api.impl.controller.LicenseReportController;
import com.iqser.red.service.persistence.service.v1.api.shared.model.license.LicenseReport;
import com.iqser.red.service.persistence.service.v1.api.shared.model.license.LicenseReportRequest;
import com.iqser.red.service.persistence.service.v2.api.external.resource.LicenseResource;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
@Tag(name = "5. License endpoints", description = "Provides operations related to the license")
public class LicenseControllerV2 implements LicenseResource {

    private final LicenseReportController licenseReportController;

    public LicenseReport getReport(@RequestBody LicenseReportRequest reportRequest) {
        return licenseReportController.getReport(reportRequest);
    }

}
