프로젝트

일반

사용자정보

UploadHtml » 이력 » 버전 6

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

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
*UploadLocationResponse*
15 1 이름없음
16
| field | type | description |
17
| command | String | 요청Command 종류(값: "uploadHtml") |
18
| result | UploadLocationResult |   |
19
20
*UploadLocationResult*
21
22
| field | type | description |
23
| fullUrlPath | String | 저장된 경로 |
24
| originalFilename | String | 저장된 파일의 이름 |
25
26 6 이름없음
*요청 예시*
27
28
<pre>
29
{
30
"query": "mutation($did: String) {uploadHtml(did: $did){ command result{ originalFilename fullUrlPath } }}",
31
"variables": {
32
"did": "HmxD2jgZhBWEGcBnC66Kja" 
33
}
34
}
35
</pre>
36
37 3 이름없음
*응답 예시*
38
39
<pre>
40
{
41 5 이름없음
    "data": {
42
        "uploadHtml": {
43
            "command": "uploadHtml",
44
            "result": [
45
                {
46 6 이름없음
                    "originalFilename": "cc.html",
47 5 이름없음
                    "fullUrlPath": "https://cdn.myd.world/cec283c40561141e910b094a5469ed24/html/Yu8e71/cc.zip"
48
                }
49
            ]
50
        }
51 3 이름없음
    }
52
}</pre>
클립보드 이미지 추가 (최대 크기: 97.7 MB)