Actions
B2B » 이력 » 개정판 11
« 뒤로 |
개정판 11/28
(비교(diff))
| 다음 »
이름없음, 2021/06/04 01:28
B2B¶
b2b에서 수행할 수 있는 api입니다. issueDid
(second party유형의 did를 새로 발급) 요청을 제외한 모든 헤더에 토큰을 포함합니다.
UploadResolver¶
GraphQL Multipart-Form으로 파일 업로드 시 operations 키 값으로 이 형식의 JSON 인코딩 바디를 포함하여 요청을 보냅니다.
operations 내부의 variables 문법 사용 방법은 이 문서를 참고할 수 있습니다.
UploadImage (Multipart-Form) api 요청 링크 추가
¶
Martipart-Form 요청 형식
key | type | description |
file | File | 업로드 할 파일 (확장자 표시해주기) |
operations | Text(one-line) | 표준 GraphQL Post 요청 형식에 따른 쿼리를 작성합니다. |
요청 필드
field | type | description |
did | String | b2b의 did |
요청 예시
{"query":"mutation($did: String){uploadImage(did: $did){command result{originalFilename fullUrlPath}}}","variables":{"did":"HmxD2jgZhBWEGcBnC66Kja"}}
응답 필드
field | type | description |
command | String | 응답 Command 종류 |
originalFilename | String | 업로드 한 파일 이름 |
fullUrlPath | String | 저장된 경로 |
응답 예시
{ "data": { "uploadImage": { "command": "uploadImage", "result": [ { "originalFilename": "100.jpg", "fullUrlPath": "https://cdn.myd.world/6f9b5a50b175e81cf2892b6da61d21af/images/GTfQBO/100.jpg" } ] } } }
uploadHtml (Multipart-Form)¶
uploadEventZip (Multipart-Form)¶
uploadAdvertizeZip (Multipart-Form)¶
uploadDsiclaimer¶
registerConfig¶
uploadEventList¶
uploadResource (Multipart-Form)¶
uploadZip (Multipart-Form)¶
SettlementResolver¶
MessageResolver¶
AuthResolver¶
이름없음이(가) 약 4년 전에 변경 · 11 revisions