UploadEventZip » 이력 » 버전 11
이름없음, 2021/06/04 07:17
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 | 11 | 이름없음 | h1. uploadEventZip |
10 | 1 | 이름없음 | |
11 | 11 | 이름없음 | *Martipart-Form 요청 형식* |
12 | |||
13 | | key | type | description | |
||
14 | | file | File | 업로드 할 파일 %{color: #ff0000;}(폴더를 포함하지 않는 zip 확장자)% | |
||
15 | | operations | Text(one-line) | 표준 GraphQL Post 요청 형식에 따른 쿼리를 작성합니다. | |
||
16 | |||
17 | h2. 요청 필드 |
||
18 | |||
19 | 4 | 이름없음 | <pre><code class="c"> |
20 | uploadEventZip( |
||
21 | uploadEventZipRequest: UploadEventZipRequest |
||
22 | ): UploadEventZipResponse |
||
23 | </code></pre> |
||
24 | |||
25 | *UploadEventZipRequest* |
||
26 | |||
27 | 7 | 이름없음 | | field | type | description | |
28 | 6 | 이름없음 | | did | String | snplab 또는 b2b의 did | |
29 | 4 | 이름없음 | | proposalId | String | registerProposal로 얻은 proposalId | |
30 | |||
31 | *UploadLocationResponse* |
||
32 | 1 | 이름없음 | |
33 | 4 | 이름없음 | | field | type | description | |
34 | 11 | 이름없음 | | command | String | 요청 Command 종류(값: "eventZip") | |
35 | 4 | 이름없음 | | result | UploadLocationResult | | |
36 | |||
37 | *UploadLocationResult* |
||
38 | |||
39 | | field | type | description | |
||
40 | | fullUrlPath | String | 저장된 경로 | |
||
41 | | originalFilename | String | 저장된 파일의 이름 | |
||
42 | |||
43 | *요청 예시* |
||
44 | |||
45 | <pre> |
||
46 | { |
||
47 | "query": "mutation($param: UploadEventZipRequest) {uploadEventZip(uploadEventZipRequest: $param){ command result{mbrNo filename status did ticketID}}}", |
||
48 | "variables": { |
||
49 | "param": { |
||
50 | "did": "NfoPEFaG1adkCpijR85L66", |
||
51 | "proposalId": "orPxmv15e2oSPufT3TkdmJAkTMncB1FSukQxRAJDdVbjMPUMadf1GkZBX3MRvBQCX4M6Be6JU8DwAH3Nrxo1xnuLRzTt5DVqwJHE5Z8krDLd39Lho" |
||
52 | } |
||
53 | } |
||
54 | } |
||
55 | </pre> |
||
56 | |||
57 | *응답 예시* |
||
58 | |||
59 | <pre> |
||
60 | 8 | 이름없음 | { |
61 | "data": { |
||
62 | "uploadEventZip": { |
||
63 | "command": "eventZip", |
||
64 | "result": [ |
||
65 | { |
||
66 | 10 | 이름없음 | "mbrNo": null, |
67 | 1 | 이름없음 | "filename": "cc.zip", |
68 | 8 | 이름없음 | "status": "ASSIGNED", |
69 | "did": "", |
||
70 | 11 | 이름없음 | "ticketID": "" |
71 | 8 | 이름없음 | } |
72 | ] |
||
73 | } |
||
74 | 4 | 이름없음 | } |
75 | }</pre> |