package com.dji.sdk.cloudapi.storage.api;
|
|
import com.dji.sdk.cloudapi.storage.StsCredentialsResponse;
|
import com.dji.sdk.common.HttpResultResponse;
|
import io.swagger.v3.oas.annotations.Operation;
|
import io.swagger.v3.oas.annotations.Parameter;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import org.springframework.web.bind.annotation.PathVariable;
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletResponse;
|
|
/**
|
* @author sean
|
* @version 0.3
|
* @date 2021/12/29
|
*/
|
public interface IHttpStorageService {
|
|
String PREFIX = "storage/api/v1";
|
|
/**
|
* Get temporary credentials for uploading the media and wayline in DJI Pilot.
|
* @param req
|
* @param rsp
|
* @return
|
*/
|
@Operation(summary = "Get STS Token", description = "Get temporary credentials for uploading the media and wayline in DJI Pilot.",
|
parameters = {
|
@Parameter(name = "workspace_id", description = "workspace id", schema = @Schema(format = "uuid"))
|
})
|
@PostMapping(PREFIX + "/sts")
|
HttpResultResponse<StsCredentialsResponse> getTemporaryCredential(
|
HttpServletRequest req, HttpServletResponse rsp);
|
|
}
|