UploadEventZip » 이력 » 버전 6
이름없음, 2021/06/04 03:10
1 | 4 | 이름없음 | h1. uploadEventZip (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 | 5 | 이름없음 | h2. *요청 필드* |
10 | 4 | 이름없음 | |
11 | <pre><code class="c"> |
||
12 | uploadEventZip( |
||
13 | uploadEventZipRequest: UploadEventZipRequest |
||
14 | ): UploadEventZipResponse |
||
15 | </code></pre> |
||
16 | |||
17 | *UploadEventZipRequest* |
||
18 | |||
19 | | field | type | description | |
||
20 | | did | String | b2b 또는 snplab의 did | |
||
21 | 6 | 이름없음 | | proposalId | String | registerProposal로 얻은 proposalId | |
22 | 4 | 이름없음 | |
23 | *UploadLocationResponse* |
||
24 | |||
25 | | field | type | description | |
||
26 | | command | String | 응답 Command 종류 | |
||
27 | | result | UploadLocationResult | | |
||
28 | |||
29 | *UploadLocationResult* |
||
30 | |||
31 | | field | type | description | |
||
32 | | fullUrlPath | String | 저장된 경로 | |
||
33 | | originalFilename | String | 저장된 파일의 이름 | |
||
34 | |||
35 | *요청 예시* |
||
36 | |||
37 | <pre> |
||
38 | { |
||
39 | "query": "mutation($param: UploadEventZipRequest) {uploadEventZip(uploadEventZipRequest: $param){ command result{mbrNo filename status did ticketID}}}", |
||
40 | "variables": { |
||
41 | "param": { |
||
42 | "did": "NfoPEFaG1adkCpijR85L66", |
||
43 | "proposalId": "orPxmv15e2oSPufT3TkdmJAkTMncB1FSukQxRAJDdVbjMPUMadf1GkZBX3MRvBQCX4M6Be6JU8DwAH3Nrxo1xnuLRzTt5DVqwJHE5Z8krDLd39Lho" |
||
44 | } |
||
45 | } |
||
46 | } |
||
47 | </pre> |
||
48 | |||
49 | *응답 예시* |
||
50 | |||
51 | <pre> |
||
52 | { |
||
53 | "data": { |
||
54 | "uploadHtml": { |
||
55 | "command": "uploadHtml", |
||
56 | "result": [ |
||
57 | { |
||
58 | "originalFilename": "aaa.html", |
||
59 | "fullUrlPath": "https://cdn.myd.world/cec283c40561141e910b094a5469ed24/html/g14Ofo/aaa.html" |
||
60 | } |
||
61 | ]} |
||
62 | } |
||
63 | }</pre> |