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

io.bdeploy.api.validation.v1.PublicProductValidationResource Maven / Gradle / Ivy

Go to download

Public API including dependencies, ready to be used for integrations and plugins.

The newest version!
package io.bdeploy.api.validation.v1;

import org.glassfish.jersey.media.multipart.FormDataMultiPart;

import io.bdeploy.api.validation.v1.dto.ProductValidationResponseApi;
import io.swagger.v3.oas.annotations.Operation;
import jakarta.ws.rs.Consumes;
import jakarta.ws.rs.POST;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.MediaType;

/**
 * Public remote API which performs product validation.
 */
@Path("/public/v1/validation")
public interface PublicProductValidationResource {

    /**
     * Receives a ZIP containing all raw product related data. This data is validated and a result is returned. This service
     * allows for validation of raw product data even before any of the applications referenced has been actually built.
     *
     * @return the validation result.
     */
    @Operation(summary = "Validate raw product data",
               description = "Validates all YAML files involved in a product before actually building the product.")
    @POST
    @Produces(MediaType.APPLICATION_JSON)
    @Consumes(MediaType.MULTIPART_FORM_DATA)
    public ProductValidationResponseApi validate(FormDataMultiPart fdmp);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy