public interface WorkspaceService
@GET(value="/api/workspace") void getAllWorkspaces(retrofit.Callback<List<Workspace>> callback)
@GET(value="/api/workspace/{id}")
Workspace getWorkspaceById(@Path(value="id")
String id)
@GET(value="/api/workspace/{id}")
void getWorkspaceById(@Path(value="id")
String id,
retrofit.Callback<Workspace> callback)
@GET(value="/api/workspace/{id}/branch")
List<WorkspaceBranch> getBranches(@Path(value="id")
String id)
@GET(value="/api/workspace/{id}/branch")
void getBranches(@Path(value="id")
String id,
retrofit.Callback<List<WorkspaceBranch>> callback)
@GET(value="/api/workspace/{id}/aggregated")
AggregatedWorkspace getAggregatedWorkspace(@Path(value="id")
String id)
@GET(value="/api/workspace/{id}/aggregated")
void getAggregatedWorkspace(@Path(value="id")
String id,
retrofit.Callback<AggregatedWorkspace> callback)
@POST(value="/api/workspace")
void createWorkspace(@Body
Workspace workspace,
retrofit.Callback<Workspace> callback)
@POST(value="/api/workspace/{id}/branch/create")
Workspace branchWorkspace(@Path(value="id")
String id,
@Body
WorkspaceBranchRequest branch)
@POST(value="/api/workspace/{id}/branch/create")
void branchWorkspace(@Path(value="id")
String id,
@Body
WorkspaceBranchRequest branch,
retrofit.Callback<Workspace> callback)
@PUT(value="/api/workspace/{id}")
Workspace updateWorkspace(@Path(value="id")
String id,
@Body
Workspace workspace)
@PUT(value="/api/workspace/{id}")
void updateWorkspace(@Path(value="id")
String id,
@Body
Workspace workspace,
retrofit.Callback<Workspace> callback)
@DELETE(value="/api/workspace/{id}")
retrofit.client.Response deleteWorkspace(@Path(value="id")
String id)
@DELETE(value="/api/workspace/{id}")
void deleteWorkspace(@Path(value="id")
String id,
retrofit.Callback<retrofit.client.Response> callback)
@GET(value="/api/workspace/search") List<Workspace> findWorkspacesByName(@Query(value="name") String workspaceName)
Workspace createWorkspaceWithModel(String workspaceName, String modelID, String description)
Workspace createWorkspaceFromTemplate(String workspaceName, String templateID, String decription)
@GET(value="/api/workspace/{id}/component")
List<Component> getAllComponents(@Path(value="id")
String id)
Copyright © 2018. All rights reserved.