UploadEventZip » 이력 » 버전 8
이름없음, 2021/06/04 06:50
1 | 4 | 이름없음 | h1. uploadEventZip (Multipart-Form) |
---|---|---|---|
2 | |||
3 | Martipart-Form 요청 형식 |
||
4 | |||
5 | | key | type | description | |
||
6 | 7 | 이름없음 | | file | File | 업로드 할 파일 %{color: #ff0000;}(폴더를 포함하지 않고, html 및 html 파일을 가진 Zip 확장자)% | |
7 | 4 | 이름없음 | | 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 | 7 | 이름없음 | | did | String | snplab 또는 b2b의 did | |
21 | 6 | 이름없음 | | proposalId | String | registerProposal로 얻은 proposalId | |
22 | 4 | 이름없음 | |
23 | *UploadLocationResponse* |
||
24 | |||
25 | | field | type | description | |
||
26 | 7 | 이름없음 | | command | String | 요청 Command 종류(값: "uploadHtml") | |
27 | 4 | 이름없음 | | 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 | 8 | 이름없음 | "data": { |
54 | "uploadEventZip": { |
||
55 | "command": "eventZip", |
||
56 | "result": [ |
||
57 | { |
||
58 | "mbrNo": null, |
||
59 | "filename": "cc.html", |
||
60 | "status": "ASSIGNED", |
||
61 | "did": "", |
||
62 | "ticketID": "" |
||
63 | } |
||
64 | ] |
||
65 | } |
||
66 | 4 | 이름없음 | } |
67 | }</pre> |