UploadEventZip » 이력 » 버전 18
이름없음, 2021/06/10 05:09
1 | 15 | 이름없음 | h1. UploadEventZip (Multipart-Form) |
---|---|---|---|
2 | 4 | 이름없음 | |
3 | 17 | 이름없음 | Event에 쓰일 zip 파일을 업로드합니다. |
4 | 16 | 이름없음 | |
5 | 4 | 이름없음 | Martipart-Form 요청 형식 |
6 | |||
7 | | key | type | description | |
||
8 | 11 | 이름없음 | | file | File | 업로드 할 파일 %{color: #ff0000;}(폴더를 포함하지 않는 zip 확장자)% | |
9 | | operations | Text(one-line) | 표준 GraphQL Post 요청 형식에 따른 쿼리를 작성합니다. | |
||
10 | |||
11 | h2. 요청 필드 |
||
12 | |||
13 | 4 | 이름없음 | <pre><code class="c"> |
14 | uploadEventZip( |
||
15 | uploadEventZipRequest: UploadEventZipRequest |
||
16 | ): UploadEventZipResponse |
||
17 | </code></pre> |
||
18 | |||
19 | *UploadEventZipRequest* |
||
20 | |||
21 | 7 | 이름없음 | | field | type | description | |
22 | 6 | 이름없음 | | did | String | snplab 또는 b2b의 did | |
23 | 4 | 이름없음 | | proposalId | String | registerProposal로 얻은 proposalId | |
24 | |||
25 | 13 | 이름없음 | *UploadEventZipResponse* |
26 | 1 | 이름없음 | |
27 | 18 | 이름없음 | | field | type | description | note | |
28 | | command | String | 요청 Command 종류 | 값: eventZip | |
||
29 | | result | %{background-color: #ffffff; color: #333333; float: none; font-size: 13px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: none; font-weight: 400;}[%<notextile></notextile>"EventZipStatus"<notextile></notextile>%{background-color: #ffffff; color: #333333; float: none; font-size: 13px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: none; font-weight: 400;}]% | | | |
||
30 | 1 | 이름없음 | |
31 | 13 | 이름없음 | *EventZipStatus* |
32 | 1 | 이름없음 | |
33 | 13 | 이름없음 | | field | type | description | note | |
34 | | did | String | 저장 요청한 did | | |
||
35 | | filename | String | 저장된 파일의 이름 | | |
||
36 | | mbrNo | Long | 저장 번호 | 이미 존재하는 파일을 저장 요청할 경우 NULL값이 응답됩니다. | |
||
37 | | status | String | 상태 | | |
||
38 | | ticketID | String | 티켓 ID | | |
||
39 | 4 | 이름없음 | |
40 | *요청 예시* |
||
41 | |||
42 | <pre> |
||
43 | { |
||
44 | 18 | 이름없음 | "query": "mutation($param: UploadEventZipRequest) {uploadEventZip(uploadEventZipRequest: $param){ command result{mbrNo filename status did ticketID}}}", |
45 | "variables": { |
||
46 | "param": { |
||
47 | "did": "NfoPEFaG1adkCpijR85L66", |
||
48 | "proposalId": "orPxmv15e2oSPufT3TkdmJAkTMncB1FSukQxRAJDdVbjMPUMadf1GkZBX3MRvBQCX4M6Be6JU8DwAH3Nrxo1xnuLRzTt5DVqwJHE5Z8krDLd39Lho" |
||
49 | } |
||
50 | } |
||
51 | 4 | 이름없음 | } |
52 | </pre> |
||
53 | |||
54 | *응답 예시* |
||
55 | |||
56 | 1 | 이름없음 | <pre> |
57 | 8 | 이름없음 | { |
58 | "data": { |
||
59 | "uploadEventZip": { |
||
60 | "command": "eventZip", |
||
61 | "result": [ |
||
62 | { |
||
63 | 13 | 이름없음 | "mbrNo": 1, |
64 | 1 | 이름없음 | "filename": "cc.zip", |
65 | 8 | 이름없음 | "status": "ASSIGNED", |
66 | "did": "", |
||
67 | 11 | 이름없음 | "ticketID": "" |
68 | 8 | 이름없음 | } |
69 | ] |
||
70 | } |
||
71 | 4 | 이름없음 | } |
72 | }</pre> |