Interface CategoryApi

All Superinterfaces:
ApiService

@Path("/api/v1/categories") @Consumes("application/json") @Produces("application/json") public interface CategoryApi extends ApiService
Operations on categories.
  • Field Details

  • Method Details

    • serviceName

      default String serviceName()
      Specified by:
      serviceName in interface ApiService
    • searchCategoriesPage

      @GET org.springframework.data.domain.Page<com.xebialabs.xlrelease.view.CategoryView> searchCategoriesPage(@BeanParam com.xebialabs.xlrelease.api.v1.filter.CategoryFilters categoryFilters, @DefaultValue("0") @QueryParam("page") int page, @DefaultValue("100") @QueryParam("resultsPerPage") int resultsPerPage)
      Searches categories by filters
      Parameters:
      categoryFilters - the query parameters derived from CategoryFilters property names used as a search criteria
      page - the page of results to return. Default value is 0.
      resultsPerPage - the number of results per page. Default and maximum value is 100.
      Returns:
      the list of matching categories with the amount of workflows using it
    • searchCategories

      default List<com.xebialabs.xlrelease.view.CategoryView> searchCategories(com.xebialabs.xlrelease.api.v1.filter.CategoryFilters categoryFilters, int page, int resultsPerPage)
      Gets List of categories
      Parameters:
      categoryFilters - the search criteria
      page - the page of results to return. Default value is 0.
      resultsPerPage - the number of results per page. Default and maximum value is 100.
      Returns:
      found List<CategoryView> object
    • addCategory

      @POST com.xebialabs.xlrelease.domain.Category addCategory(com.xebialabs.xlrelease.api.v1.forms.CategoryForm categoryForm)
      Create new category
      Parameters:
      categoryForm - the content of the category
      Returns:
      created category
    • addCategory

      com.xebialabs.xlrelease.domain.Category addCategory(com.xebialabs.xlrelease.domain.Category category)
    • updateCategory

      @PUT @Path("{ciUid:.*}") com.xebialabs.xlrelease.domain.Category updateCategory(@PathParam("ciUid") Integer ciUid, com.xebialabs.xlrelease.domain.Category category)
      Updates the category
      Parameters:
      ciUid - the identifier of the category
      category - new content of the category
      Returns:
      the updated category
    • deleteCategory

      @DELETE @Path("{ciUid:.*}") void deleteCategory(@PathParam("ciUid") Integer ciUid)
      Deletes a category
      Parameters:
      ciUid - the identifies of the category