프로젝트

일반

사용자정보

Actions

UploadImage

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

Martipart-Form 요청 형식

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

uploadImage(
did: String
): UploadLocationResponse

did

field type description
did String snplab 또는 b2b의 did

UploadLocationResponse

field type description
command String 요청Command 유형 (값: "uploadImage")
originalFilename String 업로드 한 파일 이름
fullUrlPath String 저장된 경로

Request Example

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

Response Example

{
    "data": {
        "uploadImage": {
            "command": "uploadImage",
            "result": [
                {
                    "originalFilename": "100.jpg",
                    "fullUrlPath": "https://cdn.myd.world/6f9b5a50b175e81cf2892b6da61d21af/images/GTfQBO/100.jpg" 
                }
            ]
        }
    }
}

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

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