프로젝트

일반

사용자정보

UploadHtml » 이력 » 버전 5

이름없음, 2021/06/04 06:51

1 2 이름없음
h1. uploadHtml
2 3 이름없음
3
*Martipart-Form 요청 형식*
4
5
| key | type | description |
6 4 이름없음
| file | File | 업로드 할 파일 %{color: #ff0000;}(txt 확장자 저장 불가능)% |
7 3 이름없음
| operations | Text(one-line) | 표준 GraphQL Post 요청 형식에 따른 쿼리를 작성합니다. |
8
9
*요청 필드*
10
11
| field | type | description |
12 4 이름없음
| did | String | snplab 또는 b2b의 did |
13 3 이름없음
14
*요청 예시*
15
16
<pre>
17
{
18
"query": "mutation($did: String) {uploadHtml(did: $did){ command result{ originalFilename fullUrlPath } }}",
19
"variables": {
20
"did": "HmxD2jgZhBWEGcBnC66Kja" 
21
}
22
}
23
</pre>
24
25
*UploadLocationResponse*
26
27
| field | type | description |
28 4 이름없음
| command | String | 요청Command 종류(값: "uploadHtml") |
29 3 이름없음
| result | UploadLocationResult |   |
30
31
*UploadLocationResult*
32
33
| field | type | description |
34
| fullUrlPath | String | 저장된 경로 |
35
| originalFilename | String | 저장된 파일의 이름 |
36
37
*응답 예시*
38
39
<pre>
40
{
41 5 이름없음
    "data": {
42
        "uploadHtml": {
43
            "command": "uploadHtml",
44
            "result": [
45
                {
46
                    "originalFilename": "cc.zip",
47
                    "fullUrlPath": "https://cdn.myd.world/cec283c40561141e910b094a5469ed24/html/Yu8e71/cc.zip"
48
                }
49
            ]
50
        }
51 3 이름없음
    }
52
}</pre>
클립보드 이미지 추가 (최대 크기: 97.7 MB)