UploadAdvertizeZip » 이력 » 버전 2
이름없음, 2021/06/04 02:56
1 | 2 | 이름없음 | h1. uploadAdvertizeZip (Multipart-Form) |
---|---|---|---|
2 | |||
3 | Martipart-Form 요청 형식 |
||
4 | |||
5 | | key | type | description | |
||
6 | | file | File | 업로드 할 파일 %{color: #ff0000;}(폴더를 포함하지 않는 Zip 확장자)% | |
||
7 | | operations | Text(one-line) | 표준 GraphQL Post 요청 형식에 따른 쿼리를 작성합니다. | |
||
8 | |||
9 | h2. *요청 필드* |
||
10 | |||
11 | <pre><code class="c"> |
||
12 | uploadAdvertizeZip( |
||
13 | did: String |
||
14 | ): UploadAdvertizeZipResponse |
||
15 | </code></pre> |
||
16 | |||
17 | p{background-color: #ffffff; border: 0px none; color: #333333; font-style: normal; font-variant-caps: normal; font-variant-ligatures: none; font-weight: bold; margin: 0px;}. *UploadAdvertizeZipResponse* |
||
18 | |||
19 | | field | type | description | |
||
20 | | command | String | 응답 Command 종류 | |
||
21 | | fullUrlPath | [String] | 저장된 경로 | |
||
22 | |||
23 | *요청 예시* |
||
24 | |||
25 | <pre> |
||
26 | { |
||
27 | "query": "mutation($did: String) {uploadAdvertizeZip(did: $did){ command fullUrlPath}}", |
||
28 | "variables": { |
||
29 | "did": "NfoPEFaG1adkCpijR85L66" |
||
30 | } |
||
31 | } |
||
32 | </pre> |
||
33 | |||
34 | *응답 예시* |
||
35 | |||
36 | <pre> |
||
37 | { |
||
38 | "data": { |
||
39 | "uploadHtml": { |
||
40 | "command": "uploadHtml", |
||
41 | "result": [ |
||
42 | { |
||
43 | "originalFilename": "aaa.html", |
||
44 | "fullUrlPath": "https://cdn.myd.world/cec283c40561141e910b094a5469ed24/html/g14Ofo/aaa.html" |
||
45 | } |
||
46 | ]} |
||
47 | } |
||
48 | }</pre> |