Skip to content

Commit

Permalink
#24738 adding doc
Browse files Browse the repository at this point in the history
  • Loading branch information
fabrizzio-dotCMS committed Jun 22, 2023
1 parent d3c58a9 commit ac2af5a
Showing 1 changed file with 38 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ public class WebAssetResource {

private final WebAssetHelper helper = WebAssetHelper.newInstance();

/**
* Get Assets and their metadata by path
* @param request
* @param response
* @param form
* @return
* @throws DotSecurityException
* @throws DotDataException
*/
@Path("/")
@POST
@JSONP
Expand All @@ -63,6 +72,15 @@ public Response getAssetsInfo(@Context final HttpServletRequest request,
}


/**
* Get a hold of the asset content for download by path, language and version
* @param request
* @param response
* @param form
* @return
* @throws DotSecurityException
* @throws DotDataException
*/
@Path("/_download")
@POST
@JSONP
Expand All @@ -89,6 +107,16 @@ public Response download(@Context final HttpServletRequest request,
}


/**
* Push or update an asset by path
* @param request
* @param response
* @param form
* @return
* @throws DotSecurityException
* @throws DotDataException
* @throws IOException
*/
@Path("/")
@PUT
@JSONP
Expand All @@ -114,6 +142,16 @@ public Response saveUpdateAsset(
return Response.ok(new WebAssetEntityView(webAssetView)).build();
}

/**
* Delete an asset by path language and version
* @param request
* @param response
* @param form
* @return
* @throws DotSecurityException
* @throws DotDataException
* @throws IOException
*/
@Path("/")
@DELETE
@JSONP
Expand Down

0 comments on commit ac2af5a

Please sign in to comment.