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

io.apicurio.registry.rest.v2.SearchResource Maven / Gradle / Ivy

The newest version!
package io.apicurio.registry.rest.v2;

import io.apicurio.registry.rest.v2.beans.ArtifactSearchResults;
import io.apicurio.registry.rest.v2.beans.SortBy;
import io.apicurio.registry.rest.v2.beans.SortOrder;
import jakarta.validation.constraints.NotNull;
import jakarta.ws.rs.Consumes;
import jakarta.ws.rs.DefaultValue;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.POST;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.QueryParam;
import java.io.InputStream;
import java.math.BigInteger;
import java.util.List;

/**
 * A JAX-RS interface. An implementation of this interface must be provided.
 */
@Path("/apis/registry/v2/search")
public interface SearchResource {
  /**
   * 

* Returns a paginated list of all artifacts that match the provided filter * criteria. *

* */ @Path("/artifacts") @GET @Produces("application/json") ArtifactSearchResults searchArtifacts(@QueryParam("name") String name, @QueryParam("offset") @DefaultValue("0") BigInteger offset, @QueryParam("limit") @DefaultValue("20") BigInteger limit, @QueryParam("order") SortOrder order, @QueryParam("orderby") SortBy orderby, @QueryParam("labels") List labels, @QueryParam("properties") List properties, @QueryParam("description") String description, @QueryParam("group") String group, @QueryParam("globalId") Long globalId, @QueryParam("contentId") Long contentId); /** *

* Returns a paginated list of all artifacts with at least one version that * matches the posted content. *

* */ @Path("/artifacts") @POST @Produces("application/json") @Consumes("*/*") ArtifactSearchResults searchArtifactsByContent(@QueryParam("canonical") Boolean canonical, @QueryParam("artifactType") String artifactType, @QueryParam("offset") @DefaultValue("0") BigInteger offset, @QueryParam("limit") @DefaultValue("20") BigInteger limit, @QueryParam("order") SortOrder order, @QueryParam("orderby") SortBy orderby, @NotNull InputStream data); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy