UploadImage » 이력 » 버전 10
이름없음, 2021/06/09 07:00
1 | 10 | 이름없음 | h1. UploadImage |
---|---|---|---|
2 | 3 | 이름없음 | |
3 | 5 | 이름없음 | *Martipart-Form 요청 형식* |
4 | 3 | 이름없음 | |
5 | | key | type | description | |
||
6 | 9 | 이름없음 | | file | File | 업로드 할 파일 %{color: #ff0000;}(확장자 제한 없습니다)% | |
7 | 3 | 이름없음 | | operations | Text(one-line) | 표준 GraphQL Post 요청 형식에 따른 쿼리를 작성합니다. | |
8 | |||
9 | 6 | 이름없음 | h2. *요청 필드* |
10 | 1 | 이름없음 | |
11 | 7 | 이름없음 | <pre><code class="c"> |
12 | uploadImage( |
||
13 | did: String |
||
14 | ): UploadLocationResponse |
||
15 | </code></pre> |
||
16 | 1 | 이름없음 | |
17 | 7 | 이름없음 | *did* |
18 | 3 | 이름없음 | |
19 | 7 | 이름없음 | | field | type | description | |
20 | | did | String | snplab 또는 b2b의 did | |
||
21 | 1 | 이름없음 | |
22 | 7 | 이름없음 | *UploadLocationResponse* |
23 | 1 | 이름없음 | |
24 | | field | type | description | |
||
25 | 8 | 이름없음 | | command | String | 요청Command 유형 (값: "uploadImage") | |
26 | 1 | 이름없음 | | originalFilename | String | 업로드 한 파일 이름 | |
27 | | fullUrlPath | String | 저장된 경로 | |
||
28 | 7 | 이름없음 | |
29 | *요청 예시* |
||
30 | |||
31 | <pre> |
||
32 | { |
||
33 | "query": "mutation($did: String) {uploadImage(did: $did){ command result{ originalFilename fullUrlPath } }}", |
||
34 | "variables": { |
||
35 | "did": "HmxD2jgZhBWEGcBnC66Kja" |
||
36 | } |
||
37 | } |
||
38 | </pre> |
||
39 | 3 | 이름없음 | |
40 | *응답 예시* |
||
41 | |||
42 | <pre> |
||
43 | { |
||
44 | "data": { |
||
45 | "uploadImage": { |
||
46 | "command": "uploadImage", |
||
47 | "result": [ |
||
48 | { |
||
49 | "originalFilename": "100.jpg", |
||
50 | "fullUrlPath": "https://cdn.myd.world/6f9b5a50b175e81cf2892b6da61d21af/images/GTfQBO/100.jpg" |
||
51 | } |
||
52 | ] |
||
53 | } |
||
54 | } |
||
55 | 1 | 이름없음 | } |
56 | </pre> |