프로젝트

일반

사용자정보

Actions

UploadHtml » 이력 » 개정판 3

« 뒤로 | 개정판 3/17 (비교(diff)) | 다음 »
이름없음, 2021/06/04 02:39


uploadHtml

Martipart-Form 요청 형식

key type description
file File 업로드 할 파일 (Html 확장자)
operations Text(one-line) 표준 GraphQL Post 요청 형식에 따른 쿼리를 작성합니다.

요청 필드

field type description
did String b2b 또는 snplab의 did

요청 예시

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

UploadLocationResponse

field type description
command String 응답 Command 종류
result UploadLocationResult  

UploadLocationResult

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

응답 예시

{
"data": {
  "uploadHtml": {
  "command": "uploadHtml",
  "result": [
    {
    "originalFilename": "aaa.html",
    "fullUrlPath": "https://cdn.myd.world/cec283c40561141e910b094a5469ed24/html/g14Ofo/aaa.html" 
    }
  ]}
  }
}

이름없음이(가) 약 4년 전에 변경 · 3 revisions

클립보드 이미지 추가 (최대 크기: 97.7 MB)