com.ardoq.service.WorkspaceService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-api-client Show documentation
Show all versions of java-api-client Show documentation
Java client to Ardoq public API
package com.ardoq.service;
import com.ardoq.model.AggregatedWorkspace;
import com.ardoq.model.Component;
import com.ardoq.model.Workspace;
import com.ardoq.model.WorkspaceBranch;
import com.ardoq.model.WorkspaceBranchRequest;
import retrofit.Callback;
import retrofit.client.Response;
import retrofit.http.*;
import java.util.List;
public interface WorkspaceService {
@GET("/api/workspace")
List getAllWorkspaces();
@GET("/api/workspace")
void getAllWorkspaces(Callback> callback);
@GET("/api/workspace/{id}")
Workspace getWorkspaceById(@Path("id") String id);
@GET("/api/workspace/{id}")
void getWorkspaceById(@Path("id") String id, Callback callback);
@GET("/api/workspace/{id}/branch")
List getBranches(@Path("id") String id);
@GET("/api/workspace/{id}/branch")
void getBranches(@Path("id") String id, Callback> callback);
@GET("/api/workspace/{id}/aggregated")
AggregatedWorkspace getAggregatedWorkspace(@Path("id") String id);
@GET("/api/workspace/{id}/aggregated")
void getAggregatedWorkspace(@Path("id") String id, Callback callback);
@POST("/api/workspace")
Workspace createWorkspace(@Body Workspace workspace);
@POST("/api/workspace")
void createWorkspace(@Body Workspace workspace, Callback callback);
@POST("/api/workspace/{id}/branch/create")
Workspace branchWorkspace(@Path("id") String id, @Body WorkspaceBranchRequest branch);
@POST("/api/workspace/{id}/branch/create")
void branchWorkspace(@Path("id") String id, @Body WorkspaceBranchRequest branch, Callback callback);
@PUT("/api/workspace/{id}")
Workspace updateWorkspace(@Path("id") String id, @Body Workspace workspace);
@PUT("/api/workspace/{id}")
void updateWorkspace(@Path("id") String id, @Body Workspace workspace, Callback callback);
@DELETE("/api/workspace/{id}")
Response deleteWorkspace(@Path("id") String id);
@DELETE("/api/workspace/{id}")
void deleteWorkspace(@Path("id") String id, Callback callback);
@GET("/api/workspace/search")
List findWorkspacesByName(@Query("name") String workspaceName);
Workspace createWorkspaceWithModel(String workspaceName, String modelID, String description);
Workspace createWorkspaceFromTemplate(String workspaceName, String templateID, String decription);
@GET("/api/workspace/{id}/component")
List getAllComponents(@Path("id") String id);
@GET("/api/workspace/{id}/component")
void getAllComponents(@Path("id") String id, Callback> callback);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy