Fixed some typos
parent
06d1e5b07c
commit
445db26f33
|
|
@ -353,7 +353,7 @@ public class CategoriesApi {
|
|||
@PathParam("domainIdentifier") final String domainIdentifierParam,
|
||||
@PathParam("path") final String categoryPath,
|
||||
@QueryParam("limit") @DefaultValue("20") final int limit,
|
||||
@QueryParam("offset") @DefaultValue("20") final int offset
|
||||
@QueryParam("offset") @DefaultValue("0") final int offset
|
||||
) {
|
||||
final Domain domain = repository.findDomain(domainIdentifierParam);
|
||||
final Category category = categoryRepository
|
||||
|
|
@ -389,7 +389,7 @@ public class CategoriesApi {
|
|||
public ListView<CategoryData> getSubCategories(
|
||||
@PathParam("categoryId") final long categoryId,
|
||||
@QueryParam("limit") @DefaultValue("20") final int limit,
|
||||
@QueryParam("offset") @DefaultValue("20") final int offset
|
||||
@QueryParam("offset") @DefaultValue("0") final int offset
|
||||
) {
|
||||
final Category category = categoryRepository
|
||||
.findById(categoryId)
|
||||
|
|
@ -422,7 +422,7 @@ public class CategoriesApi {
|
|||
public ListView<CategoryData> getSubCategories(
|
||||
@PathParam("categoryUuid") final String uuid,
|
||||
@QueryParam("limit") @DefaultValue("20") final int limit,
|
||||
@QueryParam("offset") @DefaultValue("20") final int offset
|
||||
@QueryParam("offset") @DefaultValue("0") final int offset
|
||||
) {
|
||||
final Category category = categoryRepository
|
||||
.findByUuid(uuid)
|
||||
|
|
@ -505,8 +505,8 @@ public class CategoriesApi {
|
|||
public ListView<CategorizationData> getObjectsInCategory(
|
||||
@PathParam("domainIdentifier") final String domainIdentifier,
|
||||
@PathParam("path") final String categoryPath,
|
||||
@QueryParam("limit") final int limit,
|
||||
@QueryParam("offset") final int offset
|
||||
@QueryParam("limit") @DefaultValue("20") final int limit,
|
||||
@QueryParam("offset") @DefaultValue("0") final int offset
|
||||
) {
|
||||
final Domain domain = repository.findDomain(domainIdentifier);
|
||||
final Category category = findCategory(domain, categoryPath);
|
||||
|
|
@ -530,8 +530,8 @@ public class CategoriesApi {
|
|||
@Transactional(Transactional.TxType.REQUIRED)
|
||||
public ListView<CategorizationData> getCategoryObjectsInCategory(
|
||||
@PathParam("categoryId") final long categoryId,
|
||||
@QueryParam("limit") final int limit,
|
||||
@QueryParam("offset") final int offset
|
||||
@QueryParam("limit") @DefaultValue("20") final int limit,
|
||||
@QueryParam("offset") @DefaultValue("0") final int offset
|
||||
) {
|
||||
final Category category = findCategory(categoryId);
|
||||
|
||||
|
|
@ -554,8 +554,8 @@ public class CategoriesApi {
|
|||
@Transactional(Transactional.TxType.REQUIRED)
|
||||
public ListView<CategorizationData> getObjectsInCategory(
|
||||
@PathParam("uuid") final String uuid,
|
||||
@QueryParam("limit") final int limit,
|
||||
@QueryParam("offset") final int offset
|
||||
@QueryParam("limit") @DefaultValue("20") final int limit,
|
||||
@QueryParam("offset") @DefaultValue("0") final int offset
|
||||
) {
|
||||
final Category category = findCategory(uuid);
|
||||
|
||||
|
|
@ -779,12 +779,12 @@ public class CategoriesApi {
|
|||
}
|
||||
|
||||
@DELETE
|
||||
@Path("/UUID-{categoryId}/objects/objectIdentifier")
|
||||
@Path("/UUID-{categoryId}/objects/{objectIdentifier}")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
@AuthorizationRequired
|
||||
@RequiresPrivilege(CoreConstants.PRIVILEGE_ADMIN)
|
||||
@Transactional(Transactional.TxType.REQUIRED)
|
||||
public Response removeObjectsFromCategory(
|
||||
public Response removeObjectFromCategory(
|
||||
@PathParam("categoryId") final String categoryUuid,
|
||||
@PathParam("objectIdentifier") final String categorizationUuid
|
||||
) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue