프로젝트

일반

사용자정보

UploadHtml » 이력 » 개정판 13

개정판 12 (이름없음, 2021/06/10 02:47) → 개정판 13/17 (이름없음, 2021/06/10 06:04)

h1. UploadHtml 

 광고 페이지에 사용할 HTML 파일을 업로드합니다. 

 *Martipart-Form 요청 형식* 

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

 --- h2. *요청 필드* 

 <pre><code class="c"> 
 uploadImage( 
 did: String 
 ): UploadLocationResponse 
 </code></pre> 

 *did* 

 | field | type | description | 
 | did | String | snplab 또는 b2b의 did | 

 *UploadLocationResponse* 

 | field | type | description | 
 | command | String | 요청Command 종류(값: "uploadHtml") | 
 | result | UploadLocationResult |   | 

 *UploadLocationResult* 

 | field | type | description | 
 | fullUrlPath | String | 저장된 경로 | 
 | originalFilename | String | 저장된 파일의 이름 | 

 --- *요청 예시* 

 *Request Example* 

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

 *Response Example* *응답 예시* 

 <pre> 
 { 
     "data": { 
         "uploadHtml": { 
             "command": "uploadHtml", 
             "result": [ 
                 { 
                     "originalFilename": "cc.html", 
                     "fullUrlPath": "https://cdn.myd.world/cec283c40561141e910b094a5469ed24/html/Yu8e71/cc.zip"  
                 } 
             ] 
         } 
     } 
 }</pre>
클립보드 이미지 추가 (최대 크기: 97.7 MB)