UploadEventZip » 이력 » 버전 12
이름없음, 2021/06/04 07:18
1 | 4 | 이름없음 | h1. uploadEventZip (Multipart-Form) |
---|---|---|---|
2 | |||
3 | Martipart-Form 요청 형식 |
||
4 | |||
5 | | key | type | description | |
||
6 | 11 | 이름없음 | | file | File | 업로드 할 파일 %{color: #ff0000;}(폴더를 포함하지 않는 zip 확장자)% | |
7 | | operations | Text(one-line) | 표준 GraphQL Post 요청 형식에 따른 쿼리를 작성합니다. | |
||
8 | |||
9 | h2. 요청 필드 |
||
10 | |||
11 | 4 | 이름없음 | <pre><code class="c"> |
12 | uploadEventZip( |
||
13 | uploadEventZipRequest: UploadEventZipRequest |
||
14 | ): UploadEventZipResponse |
||
15 | </code></pre> |
||
16 | |||
17 | *UploadEventZipRequest* |
||
18 | |||
19 | 7 | 이름없음 | | field | type | description | |
20 | 6 | 이름없음 | | did | String | snplab 또는 b2b의 did | |
21 | 4 | 이름없음 | | proposalId | String | registerProposal로 얻은 proposalId | |
22 | |||
23 | *UploadLocationResponse* |
||
24 | 1 | 이름없음 | |
25 | 4 | 이름없음 | | field | type | description | |
26 | 11 | 이름없음 | | command | String | 요청 Command 종류(값: "eventZip") | |
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 | 8 | 이름없음 | { |
53 | "data": { |
||
54 | "uploadEventZip": { |
||
55 | "command": "eventZip", |
||
56 | "result": [ |
||
57 | { |
||
58 | 10 | 이름없음 | "mbrNo": null, |
59 | 1 | 이름없음 | "filename": "cc.zip", |
60 | 8 | 이름없음 | "status": "ASSIGNED", |
61 | "did": "", |
||
62 | 11 | 이름없음 | "ticketID": "" |
63 | 8 | 이름없음 | } |
64 | ] |
||
65 | } |
||
66 | 4 | 이름없음 | } |
67 | }</pre> |