프로젝트

일반

사용자정보

UploadHtml » 이력 » 버전 15

이름없음, 2021/06/10 06:22

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