38 lines
1.3 KiB
Java
38 lines
1.3 KiB
Java
package com.inteligr8.alfresco.acs.api;
|
|
|
|
import com.inteligr8.alfresco.acs.model.DiscoveryEntry;
|
|
import com.inteligr8.alfresco.acs.model.Error;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiResponse;
|
|
import io.swagger.annotations.ApiResponses;
|
|
import javax.ws.rs.*;
|
|
|
|
/**
|
|
* Alfresco Content Services REST API
|
|
*
|
|
* <p>**Discovery API** Provides access to information about Alfresco Content Services.
|
|
*
|
|
*/
|
|
@Path("/api")
|
|
@Api(value = "/api", description = "")
|
|
public interface DiscoveryApi {
|
|
|
|
/**
|
|
* Get repository information
|
|
*
|
|
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Retrieves the capabilities and detailed version information from the repository.
|
|
*
|
|
*/
|
|
@GET
|
|
@Path("/discovery")
|
|
@Produces({ "application/json" })
|
|
@ApiOperation(value = "Get repository information", tags={ })
|
|
@ApiResponses(value = {
|
|
@ApiResponse(code = 200, message = "Successful response", response = DiscoveryEntry.class),
|
|
@ApiResponse(code = 501, message = "Discovery is disabled for the system"),
|
|
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
|
public DiscoveryEntry getRepositoryInformation();
|
|
}
|
|
|