Interface SearchResource
-
Method Summary
Modifier and TypeMethodDescriptionsearchArtifacts(String name, BigInteger offset, BigInteger limit, SortOrder order, ArtifactSortBy orderby, List<String> labels, String description, String groupId, Long globalId, Long contentId, String artifactId, String artifactType) Returns a paginated list of all artifacts that match the provided filter criteria.searchArtifactsByContent(Boolean canonical, String artifactType, String groupId, BigInteger offset, BigInteger limit, SortOrder order, ArtifactSortBy orderby, @NotNull InputStream data) Returns a paginated list of all artifacts with at least one version that matches the posted content.searchContractRulesByTag(@NotNull String tag) Returns all contract rules across all artifacts that contain the specified tag.searchContracts(String status, String ownerTeam, String compatibilityGroup, BigInteger offset, BigInteger limit, SortOrder order, String orderby) Searches for artifacts that have contract metadata labels.searchGroups(BigInteger offset, BigInteger limit, SortOrder order, GroupSortBy orderby, List<String> labels, String description, String groupId) Returns a paginated list of all groups that match the provided filter criteria.searchVersions(@Pattern(regexp="^[a-zA-Z0-9._\\-+]{1,256}$") String version, BigInteger offset, BigInteger limit, SortOrder order, VersionSortBy orderby, List<String> labels, String description, @Pattern(regexp="^.{1,512}$") String groupId, Long globalId, Long contentId, @Pattern(regexp="^.{1,512}$") String artifactId, String name, VersionState state, String artifactType, String content, String structure) Returns a paginated list of all versions that match the provided filter criteria.searchVersionsByContent(Boolean canonical, String artifactType, BigInteger offset, BigInteger limit, SortOrder order, VersionSortBy orderby, @Pattern(regexp="^.{1,512}$") String groupId, @Pattern(regexp="^.{1,512}$") String artifactId, @NotNull InputStream data) Returns a paginated list of all versions that match the posted content.
-
Method Details
-
searchArtifacts
@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") ArtifactSortBy orderby, @QueryParam("labels") List<String> labels, @QueryParam("description") String description, @QueryParam("groupId") String groupId, @QueryParam("globalId") Long globalId, @QueryParam("contentId") Long contentId, @QueryParam("artifactId") String artifactId, @QueryParam("artifactType") String artifactType) Returns a paginated list of all artifacts that match the provided filter criteria.
This operation can fail for the following reasons:
- A server error occurred (HTTP error
500)
- A server error occurred (HTTP error
-
searchArtifactsByContent
@Path("/artifacts") @POST @Produces("application/json") @Consumes("*/*") ArtifactSearchResults searchArtifactsByContent(@QueryParam("canonical") Boolean canonical, @QueryParam("artifactType") String artifactType, @QueryParam("groupId") String groupId, @QueryParam("offset") @DefaultValue("0") BigInteger offset, @QueryParam("limit") @DefaultValue("20") BigInteger limit, @QueryParam("order") SortOrder order, @QueryParam("orderby") ArtifactSortBy orderby, @NotNull @NotNull InputStream data) Returns a paginated list of all artifacts with at least one version that matches the posted content.
This operation can fail for the following reasons:
- Provided content (request body) was empty (HTTP error
400) - A server error occurred (HTTP error
500)
- Provided content (request body) was empty (HTTP error
-
searchGroups
@Path("/groups") @GET @Produces("application/json") GroupSearchResults searchGroups(@QueryParam("offset") @DefaultValue("0") BigInteger offset, @QueryParam("limit") @DefaultValue("20") BigInteger limit, @QueryParam("order") SortOrder order, @QueryParam("orderby") GroupSortBy orderby, @QueryParam("labels") List<String> labels, @QueryParam("description") String description, @QueryParam("groupId") String groupId) Returns a paginated list of all groups that match the provided filter criteria.
This operation can fail for the following reasons:
- A server error occurred (HTTP error
500)
- A server error occurred (HTTP error
-
searchVersions
@Path("/versions") @GET @Produces("application/json") VersionSearchResults searchVersions(@QueryParam("version") @Pattern(regexp="^[a-zA-Z0-9._\\-+]{1,256}$") @Pattern(regexp="^[a-zA-Z0-9._\\-+]{1,256}$") String version, @QueryParam("offset") @DefaultValue("0") BigInteger offset, @QueryParam("limit") @DefaultValue("20") BigInteger limit, @QueryParam("order") SortOrder order, @QueryParam("orderby") VersionSortBy orderby, @QueryParam("labels") List<String> labels, @QueryParam("description") String description, @QueryParam("groupId") @Pattern(regexp="^.{1,512}$") @Pattern(regexp="^.{1,512}$") String groupId, @QueryParam("globalId") Long globalId, @QueryParam("contentId") Long contentId, @QueryParam("artifactId") @Pattern(regexp="^.{1,512}$") @Pattern(regexp="^.{1,512}$") String artifactId, @QueryParam("name") String name, @QueryParam("state") VersionState state, @QueryParam("artifactType") String artifactType, @QueryParam("content") String content, @QueryParam("structure") String structure) Returns a paginated list of all versions that match the provided filter criteria.
This operation can fail for the following reasons:
- A server error occurred (HTTP error
500)
- A server error occurred (HTTP error
-
searchVersionsByContent
@Path("/versions") @POST @Produces("application/json") @Consumes("*/*") VersionSearchResults searchVersionsByContent(@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") VersionSortBy orderby, @QueryParam("groupId") @Pattern(regexp="^.{1,512}$") @Pattern(regexp="^.{1,512}$") String groupId, @QueryParam("artifactId") @Pattern(regexp="^.{1,512}$") @Pattern(regexp="^.{1,512}$") String artifactId, @NotNull @NotNull InputStream data) Returns a paginated list of all versions that match the posted content.
This operation can fail for the following reasons:
- Provided content (request body) was empty (HTTP error
400) - A server error occurred (HTTP error
500)
- Provided content (request body) was empty (HTTP error
-
searchContractRulesByTag
@Path("/contract/rules") @GET @Produces("application/json") List<ContractRuleSearchResult> searchContractRulesByTag(@QueryParam("tag") @NotNull @NotNull String tag) Returns all contract rules across all artifacts that contain the specified tag.
-
searchContracts
@Path("/contracts") @GET @Produces("application/json") ArtifactSearchResults searchContracts(@QueryParam("status") String status, @QueryParam("ownerTeam") String ownerTeam, @QueryParam("compatibilityGroup") String compatibilityGroup, @QueryParam("offset") @DefaultValue("0") BigInteger offset, @QueryParam("limit") @DefaultValue("20") BigInteger limit, @QueryParam("order") SortOrder order, @QueryParam("orderby") String orderby) Searches for artifacts that have contract metadata labels. Filters by status, owner team, and compatibility group.
-