com.quali.cloudshell.service.SandboxAPISpec Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sandbox-api Show documentation
Show all versions of sandbox-api Show documentation
CloudShell Sandbox java gateway project
package com.quali.cloudshell.service;
import com.quali.cloudshell.api.*;
import retrofit2.Call;
import retrofit2.http.*;
public interface SandboxAPISpec {
@PUT("api/login")
Call login(@Body User user);
@GET("api/v1/blueprints")
Call getBlueprint();
@GET("api/v1/sandboxes/{sandbox}")
Call getSandbox(
@Path("sandbox") String sandbox);
@GET("api/v2/sandboxes/{sandbox}/activity")
Call getSandboxActivity(
@Path("sandbox") String sandbox,
@Query("error_only") Boolean error_only,
@Query("since") String since,
@Query("from_event_id") Long from_event_id,
@Query("tail") Integer tail);
@POST("api/v1/blueprints/{blueprint}/start")
Call createSandbox(
@Path("blueprint") String blueprint,
@Body CreateSandboxRequest sandboxRequest);
@POST("api/v1/sandboxes/{sandbox}/stop")
Call stopSandbox(
@Path("sandbox") String sandbox);
}