프로젝트

일반

사용자정보

UploadImage » 이력 » 버전 6

이름없음, 2021/06/04 04:54

1 4 이름없음
h1. uploadImage
2 3 이름없음
3 5 이름없음
*Martipart-Form 요청 형식*
4 3 이름없음
5
| key | type | description |
6
| file | File | 업로드 할 파일 %{color: #ff0000;}(확장자 표시해주기)% |
7
| operations | Text(one-line) | 표준 GraphQL Post 요청 형식에 따른 쿼리를 작성합니다. |
8
9 6 이름없음
h2. *요청 필드*
10 3 이름없음
11
| field | type | description |
12
| did | String | b2b의 did |
13
14 5 이름없음
*요청 예시*
15 3 이름없음
16
<pre>
17
{"query":"mutation($did: String){uploadImage(did: $did){command result{originalFilename fullUrlPath}}}","variables":{"did":"HmxD2jgZhBWEGcBnC66Kja"}}
18
</pre>
19
20 5 이름없음
*응답 필드*
21 3 이름없음
22
| field | type | description |
23
| command | String | 응답 Command 종류 |
24
| originalFilename | String | 업로드 한 파일 이름 |
25
| fullUrlPath | String | 저장된 경로 |
26
27 5 이름없음
*응답 예시*
28 3 이름없음
29
<pre>
30
{
31
    "data": {
32
        "uploadImage": {
33
            "command": "uploadImage",
34
            "result": [
35
                {
36
                    "originalFilename": "100.jpg",
37
                    "fullUrlPath": "https://cdn.myd.world/6f9b5a50b175e81cf2892b6da61d21af/images/GTfQBO/100.jpg" 
38
                }
39
            ]
40
        }
41
    }
42
}
43
</pre>
클립보드 이미지 추가 (최대 크기: 97.7 MB)