Class RestCoreAPI

java.lang.Object
org.alfresco.rest.requests.ModelRequest<RestCoreAPI>
org.alfresco.rest.requests.coreAPI.RestCoreAPI

public class RestCoreAPI extends ModelRequest<RestCoreAPI>
Defines the entire Rest Core API {@link https://api-explorer.alfresco.com/api-explorer/} select "Core API"
  • Constructor Details

    • RestCoreAPI

      public RestCoreAPI(RestWrapper restWrapper)
  • Method Details

    • usingSite

      public Site usingSite(String siteId)
      Provides DSL on all REST calls under sites/{siteId}/... API path
      Parameters:
      siteId -
      Returns:
      Site
    • usingSite

      public Site usingSite(org.alfresco.utility.model.SiteModel siteModel)
      Provides DSL on all REST calls under sites/{siteId}/... API path
      Parameters:
      SiteModel -
      Returns:
      Site
    • getSites

      public RestSiteModelsCollection getSites()
      Provides DSL on all REST calls under /sites API path
      Returns:
      Site
    • usingResource

      public Node usingResource(org.alfresco.utility.model.RepoTestModel node)
      Provides DSL on all REST calls under /nodes API path
      Returns:
      Node
    • usingNode

      public Node usingNode(org.alfresco.utility.model.RepoTestModel node)
      Parameters:
      node -
      Returns:
    • usingNode

      public Node usingNode()
    • usingStorageInfo

      public ContentStorageInformation usingStorageInfo()
    • usingUser

      public People usingUser(org.alfresco.utility.model.UserModel person)
      Provides DSL of all REST calls under /people API path
      Returns:
      People
    • usingMe

      public People usingMe()
      Make REST calls using current authenticated user, but using -me- instead of username
      Returns:
      People
    • usingAuthUser

      public People usingAuthUser()
      Make REST calls using current authenticated user. This is set on the #authenticateUser(UserModel) call
      Returns:
      People
    • usingNetworks

      public Networks usingNetworks()
      Provides DSL on all REST calls under /network API path
      Returns:
      Networks
    • createSingleTag

      public RestTagModel createSingleTag(RestTagModel tag)
      Create a single orphan tag.
      Parameters:
      tag - Tag model to create.
      Returns:
      Created tag.
    • createTags

      public RestTagModelsCollection createTags(List<RestTagModel> tags)
      Create several orphan tags in one request.
      Parameters:
      tags - Tags models to create.
      Returns:
      Created tags.
    • usingTag

      public Tags usingTag(RestTagModel tag)
    • getTags

      public RestTagModelsCollection getTags()
    • getTag

      public RestTagModel getTag(RestTagModel tag)
    • usingCategory

      public Categories usingCategory(RestCategoryModel categoryModel)
    • usingQueries

      public Queries usingQueries()
    • usingAudit

      public Audit usingAudit()
    • usingTrashcan

      public Trashcan usingTrashcan()
    • usingSharedLinks

      public SharedLinks usingSharedLinks()
      SharedLinks api endpoint
      Returns:
      SharedLinks api endpoint
    • usingGroups

      public Groups usingGroups()
    • usingActions

      public Actions usingActions()
    • usingDownloads

      public Downloads usingDownloads()
    • usingDownloads

      public Downloads usingDownloads(RestDownloadsModel downloadsModel)