Interface HttpContentsApi

  • All Superinterfaces:
    ContentsApi

    @Consumes("application/json")
    @Path("contents")
    public interface HttpContentsApi
    extends ContentsApi
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Contents getContents​(@Valid ContentsKey key, @Pattern(regexp="^[A-Za-z](((?![.][.])[A-Za-z0-9./_-])*[A-Za-z0-9._-])?$",message="Reference name must start with a letter, followed by letters, digits, a ./_- character, not end with a slash, not contain ..") String ref, @Pattern(regexp="^[0-9a-fA-F]{16,64}$",message="Hash must consist of the hex representation of 8-32 bytes") String hashOnRef)
      Get the properties of an object.
      MultiGetContentsResponse getMultipleContents​(@Pattern(regexp="^[A-Za-z](((?![.][.])[A-Za-z0-9./_-])*[A-Za-z0-9._-])?$",message="Reference name must start with a letter, followed by letters, digits, a ./_- character, not end with a slash, not contain ..") String ref, @Pattern(regexp="^[0-9a-fA-F]{16,64}$",message="Hash must consist of the hex representation of 8-32 bytes") String hashOnRef, @Valid @NotNull MultiGetContentsRequest request)  
    • Method Detail

      • getContents

        @GET
        @Produces("application/json")
        @Path("{key}")
        Contents getContents​(@Valid @PathParam("key")
                             @Valid ContentsKey key,
                             @Pattern(regexp="^[A-Za-z](((?![.][.])[A-Za-z0-9./_-])*[A-Za-z0-9._-])?$",message="Reference name must start with a letter, followed by letters, digits, a ./_- character, not end with a slash, not contain ..") @QueryParam("ref")
                             @Pattern(regexp="^[A-Za-z](((?![.][.])[A-Za-z0-9./_-])*[A-Za-z0-9._-])?$",message="Reference name must start with a letter, followed by letters, digits, a ./_- character, not end with a slash, not contain ..") String ref,
                             @Nullable @Pattern(regexp="^[0-9a-fA-F]{16,64}$",message="Hash must consist of the hex representation of 8-32 bytes") @QueryParam("hashOnRef")
                             @Pattern(regexp="^[0-9a-fA-F]{16,64}$",message="Hash must consist of the hex representation of 8-32 bytes") String hashOnRef)
                      throws NessieNotFoundException
        Get the properties of an object.
        Specified by:
        getContents in interface ContentsApi
        Throws:
        NessieNotFoundException
      • getMultipleContents

        @POST
        @Consumes("application/json")
        MultiGetContentsResponse getMultipleContents​(@Pattern(regexp="^[A-Za-z](((?![.][.])[A-Za-z0-9./_-])*[A-Za-z0-9._-])?$",message="Reference name must start with a letter, followed by letters, digits, a ./_- character, not end with a slash, not contain ..") @QueryParam("ref")
                                                     @Pattern(regexp="^[A-Za-z](((?![.][.])[A-Za-z0-9./_-])*[A-Za-z0-9._-])?$",message="Reference name must start with a letter, followed by letters, digits, a ./_- character, not end with a slash, not contain ..") String ref,
                                                     @Nullable @Pattern(regexp="^[0-9a-fA-F]{16,64}$",message="Hash must consist of the hex representation of 8-32 bytes") @QueryParam("hashOnRef")
                                                     @Pattern(regexp="^[0-9a-fA-F]{16,64}$",message="Hash must consist of the hex representation of 8-32 bytes") String hashOnRef,
                                                     @Valid @NotNull
                                                     @Valid @NotNull MultiGetContentsRequest request)
                                              throws NessieNotFoundException
        Specified by:
        getMultipleContents in interface ContentsApi
        Throws:
        NessieNotFoundException