wangmengmeng
2024-12-24 24432a361d5c6bd6f3d8c008693e9f1155d62517
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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);
 
}