프로젝트

일반

사용자정보

UploadResource » 이력 » 개정판 3

개정판 2 (이름없음, 2021/06/04 02:22) → 개정판 3/10 (이름없음, 2021/06/04 04:41)

h1. UploadResource 

 *Martipart-Form 요청 형식* 

 | key | type | description | 
 | file | File | 업로드 할 파일 %{color: #ff0000;}(확장자 표시해주기)% | 
 | operations | Text(one-line) | 표준 GraphQL Post 요청 형식에 따른 쿼리를 작성합니다. | 

 h2. *요청 필드* 

 <pre><code class="c"> 
 uploadResource( 
 uploadResourceRequest: UploadResourceRequest 
 ): UploadLocationResponse 
 </code></pre> 

 | field | type | description | 
 | did | String | b2b의 did | 

 *응답 필드* 

 | field | type | description | 
 | command | String | 응답 Command 종류 | 
 | originalFilename | String | 업로드 한 파일 이름 | 
 | fullUrlPath | String | 저장된 경로 | 

 *요청 예시* 

 <pre> 
 {"query":"mutation($did: String){uploadImage(did: $did){command result{originalFilename fullUrlPath}}}","variables":{"did":"HmxD2jgZhBWEGcBnC66Kja"}} 
 </pre> 

 *응답 예시* 

 <pre> 
 { 
     "data": { 
         "uploadImage": { 
             "command": "uploadImage", 
             "result": [ 
                 { 
                     "originalFilename": "100.jpg", 
                     "fullUrlPath": "https://cdn.myd.world/6f9b5a50b175e81cf2892b6da61d21af/images/GTfQBO/100.jpg"  
                 } 
             ] 
         } 
     } 
 } 
 </pre> uploadResource
클립보드 이미지 추가 (최대 크기: 97.7 MB)