情報note |
---|
現在の最新は、2.0.4 追加更新中になります。 |
Swagger open api macro |
---|
swagger: "2.0" info: description: "WhatYaAPIのメッセージリクエストに対するメッセージレスポンスのサンプル\n ※APIのみを利用してV2機能(オペレーターと接続・会話)を利用する場合、別サーバーを必要とします。\n この場合、通常の通信方式(Websocket)とは異なり、Webfookを利用した連携接続となります。\n 別途ご相談ください。" version: "2.0.40" title: "WhatYa response examples" #termsOfService: "http://swagger.io/terms/" contact: email: "info@solairo.co.jp" license: name: "SOLAIRO,Inc." url: "http://www.solairo.co.jp" #host: "[client]-[appli].bwing[server-no].app" #basePath: "/whatya/[client code]" schemes: - "https" paths: /post/message (text type): post: tags: - "text" summary: "※POST, GET same response content." description: "POST Messageに対するレスポンス※POST, GET same response content." externalDocs: description: "Parameters : See WhatYa's API" url: "https://solairo.atlassian.net/wiki/spaces/WHAT1/pages/137003029/WhatYa+APIs" responses: 200: description: "Textのみの応答メッセージ" schema: $ref: "#/definitions/Text" /post/message, /get/messages (linktext type): postget: tags: - "Linktext" summary: "※POST, GET same response content." description: "※POST, GET same response content." externalDocs: description: "Parameters : See WhatYa's API" url: "https://solairo.atlassian.net/wiki/spaces/WHAT1/pages/136019997137003029/APIWhatYa+APIs" responses: 200: description: "Textのみの応答メッセージ" schema: $ref: "#/definitions/LinkText" /post/message (link gettype): post: tags: - "Link" summary: "※POST, GET same response content." description: "" externalDocs: description: "Parameters : See WhatYa's API" url: "https://solairo.atlassian.net/wiki/spaces/WHAT1/pages/136019997137003029/APIWhatYa+APIs" responses: 200: description: "" schema: $ref: "#/definitions/Link" /post/message, /get/messages (Tellink type): postget: tags: - "TelLink" summary: "※POST, GET same response content." description: "" externalDocs: description: "Parameters : See WhatYa's API" url: "https://solairo.atlassian.net/wiki/spaces/WHAT1/pages/136019997137003029/APIWhatYa+APIs" responses: 200: description: "" schema: $ref: "#/definitions/Tel"Link" /post/message (Tel type): getpost: tags: - "Tel" summary: "※POST, GET same response content." description: "" externalDocs: description: "Parameters : See WhatYa's API" url: "https://solairo.atlassian.net/wiki/spaces/WHAT1/pages/136019997137003029/APIWhatYa+APIs" responses: 200: description: "" schema: $ref: "#/definitions/Tel" /post/message, /get/messages (MailTel type): postget: tags: - "MailTel" summary: "※POST, GET same response content." description: "" externalDocs: description: "Parameters : See WhatYa's API" url: "https://solairo.atlassian.net/wiki/spaces/WHAT1/pages/136019997137003029/APIWhatYa+APIs" responses: 200: description: "" schema: $ref: "#/definitions/Mail"Tel" /post/message (Mail type): getpost: tags: - "Mail" summary: "※POST, GET same response content." description: "" externalDocs: description: "Parameters : See WhatYa's API" url: "https://solairo.atlassian.net/wiki/spaces/WHAT1/pages/136019997137003029/APIWhatYa+APIs" responses: 200: description: "" schema: $ref: "#/definitions/Mail" /post/message, /get/messages (ImageMail type): post get: tags: - "ImageMail" summary: "※POST, GET same response content." description: "" externalDocs: description: "Parameters : See WhatYa's API" url: "https://solairo.atlassian.net/wiki/spaces/WHAT1/pages/136019997137003029/APIWhatYa+APIs" responses: 200: description: "" schema: $ref: "#/definitions/ImageMail" get: /post/message (Image type): tagspost: - tags: - "Image" summary: "※POST, GET same response content." description: "" externalDocs: description: "Parameters : See WhatYa's API" url: "https://solairo.atlassian.net/wiki/spaces/WHAT1/pages/136019997137003029/APIWhatYa+APIs" responses: 200: description: "" schema: $ref: "#/definitions/Image" /post/message, /get/messages (Item Image Sliderstype): post get: tags: - "SlidersImage" summary: "※POST, GET same response content." description: "keyが文字、valueが画像の組み合わせのスライダー" externalDocs: description: "Parameters : See WhatYa's API" url: "https://solairo.atlassian.net/wiki/spaces/WHAT1/pages/136019997137003029/APIWhatYa+APIs" responses: 200: description: "" schema: $ref: "#/definitions/ItemImageSliderImage" /post/message get(Item Image Sliders type): post: tags: - "Sliders" summary: "※POST, GET same response content." description: "keyが文字、valueが画像の組み合わせのスライダー" externalDocs: description: "Parameters : See WhatYa's API" url: "https://solairo.atlassian.net/wiki/spaces/WHAT1/pages/136019997137003029/APIWhatYa+APIs" responses: 200: description: "" schema: $ref: "#/definitions/ItemImageSlider" /post/message, /get/messages (ChipsItem Image Sliders type): postget: tags: - "ChipsSliders" summary: "※POST, GET same response content." description: "key, value ともに文字のみのチップkeyが文字、valueが画像の組み合わせのスライダー" externalDocs: description: "Parameters : See WhatYa's API" url: "https://solairo.atlassian.net/wiki/spaces/WHAT1/pages/136019997137003029/APIWhatYa+APIs" responses: 200: description: "" schema: $ref: "#/definitions/StringStringChipItemImageSlider" get /post/message (Chips type): post: tags: - "Chips" summary: "※POST, GET same response content." description: "key, value ともに文字のみのチップ" externalDocs: description: "Parameters : See WhatYa's API" url: "https://solairo.atlassian.net/wiki/spaces/WHAT1/pages/136019997137003029/APIWhatYa+APIs" responses: 200: description: "" schema: $ref: "#/definitions/StringStringChip" /post/message, /get/messages (ListsChips type): post get: tags: - "ListsChips" summary: "※POST, GET same response content." description: "リスト形式で表示key, value ともに文字のみのチップ" externalDocs: description: "Parameters : See WhatYa's API" url: "https://solairo.atlassian.net/wiki/spaces/WHAT1/pages/136019997137003029/APIWhatYa+APIs" responses: 200: description: "" schema: $ref: "#/definitions/Lists"StringStringChip" /post/message (Lists type): getpost: tags: - "Lists" summary: "※POST, GET same response content." description: "リスト形式で表示" externalDocs: description: "Parameters : See WhatYa's API" url: "https://solairo.atlassian.net/wiki/spaces/WHAT1/pages/136019997137003029/APIWhatYa+APIs" responses: 200: description: "" schema: $ref: "#/definitions/Lists" /get/messages (Lists type): /post/message (Dialog): postget: tags: - "DialogLists" summary: "※POST, GET same response content." description: "ダイアログとその内容" externalDocs: description: "Parameters : See WhatYa's API" url: "https://solairo.atlassian.net/wiki/spaces/WHAT1/pages/136019997137003029/APIWhatYa+APIs" responses: 200: description: "" schema: $ref: "#/definitions/DialogLists" /post/message, /get/messages (CardsDialog): post: tags: - "CardsDialog" summary: "※POST, GET same response content." description: "画像の下に説明文を添えるCard型のメッセージタイプ※【仕様調整中】ダイアログとその内容" externalDocs: description: "Parameters : See WhatYa's API" url: "https://solairo.atlassian.net/wiki/spaces/WHAT1/pages/136019997137003029/APIWhatYa+APIs" responses: 200: description: "" schema: $ref: "#/definitions/CardsDialog" get: tags: /post/message (Cards type): - "Cards" post: summarytags: "※POST, GET - "Cards" summary: "※POST, GET same response content." description: "画像の下に説明文を添えるCard型のメッセージタイプ" externalDocs: description: "Parameters : See WhatYa's API" url: "https://solairo.atlassian.net/wiki/spaces/WHAT1/pages/136019997137003029/APIWhatYa+APIs" responses: 200: description: "" schema: $ref: "#/definitions/Cards" /get/messages (Cards type): /post/message, /get/messages (Takeover2Op get: tags: - "Cards" summary: "※POST, GET same response content." description: "" externalDocs: description: "Parameters : See WhatYa's API" url: "https://solairo.atlassian.net/wiki/spaces/WHAT1/pages/137003029/WhatYa+APIs" responses: 200: description: "" schema: $ref: "#/definitions/Cards" /post/message, /get/messages (Takeover2Op): post: tags: - "Takeover2Op" summary: "【別途サーバー準備必要】オペレータ引き継ぎ" description: "オペレータに引き継ぐためのメッセージタイプ。\nオペレータに引き継ぐためのメッセージタイプ。\ncontent.message は null または 空文字列でもよい。その場合はメッセージ無しでオペレータに引き継ぐ。" externalDocs: description: "Parameters : See WhatYa's API" url: "https://solairo.atlassian.net/wiki/spaces/WHAT1/pages/137003029/WhatYa+APIs" responses: 200: description: "" schema: $ref: "#/definitions/Takeover2Op" /post/message (Newest): post: tags: - "Newest" summary: "最新情報掲載" description: "Newest(最新情報)が更新されたことをお知らせするSnackBarを表示する際に使用する。" externalDocs: description: "Parameters : See WhatYa's API" url: "https://solairo.atlassian.net/wiki/spaces/WHAT1/pages/137003029/WhatYa+APIs" responses: 200: description: "" schema: $ref: "#/definitions/Newest" /post/message (Youtube type): post: tags: - "Takeover2OpYoutube" summary: "※POST, GET same response content." description: "オペレータに引き継ぐためのメッセージタイプ。\nオペレータに引き継ぐためのメッセージタイプ。\ncontent.message は null または 空文字列でもよい。その場合はメッセージ無しでオペレータに引き継ぐ。Youtube動画ストリーミングのメッセージタイプ" externalDocs: description: "Parameters : See WhatYa's API" url: "https://solairo.atlassian.net/wiki/spaces/WHAT1/pages/136019997137003029/APIWhatYa+APIs" responses: 200: description: "" schema: $ref: "#/definitions/Takeover2OpYoutube" /get/messages (Youtube type): /post/message (Newest): postget: tags: - "NewestYoutube" summary: "※POST, GET same response content." description: "Newest(最新情報)が更新されたことをお知らせするSnackBarを表示する際に使用する。Youtube動画ストリーミングのメッセージタイプ" externalDocs: description: "Parameters : See WhatYa's API" url: "https://solairo.atlassian.net/wiki/spaces/WHAT1/pages/136019997137003029/APIWhatYa+APIs" responses: 200: description: "" schema: $ref: "#/definitions/NewestYoutube" definitions: Text: example: type: "text" content: messages : "Hello!! This is Bot answer." Link: example: type: "markdown" content: messages : "リンクは[こちら](http://www.solairo.co.jp/)" Tel: example: type: "telephone" content: messages : "サポートセンターへの電話はこちら" value: "0120-116-116" Mail: example: type: "mail" content: messages : "サポートセンターへのメールはこちら" value: "support@solairo.co.jp" Image: example: type: "image" content: messages : "Hello!! This is Bot answer." img_url : "https://bucket.com/item/2.png" alt : "not image" ItemImageSlider: example: type: "item_image_slider222" content: messages : "Please choice!" sliders: - img_url : "https://bucket.com/item/1.png" item_name : "item 1 xxxx" item_value : "item1" price : "¥10000" size : "S" stock : 1 - img_url : "https://bucket.com/item/2.png" item_name : "item 2 xxxx" item_value : "item2" price : "¥20000" size : "M" stock : 2 StringStringChip: example: type: "string_string_chip" content: messages: "Please choose one." chips: - item_name: "Yes" item_value: "Yes" - item_name: "No" item_value: "No" Lists: example: type: "list" content: message: "Please choose something." lists: - item_name: "Yes" item_value: "Yes" - item_name: "No" item_value: "No" Dialog: example: type: "dialog" content: message: "Please choose season." chip_accept: "show dialog" chip_deny: "deny" dialog_items: - type: "select" label: "your favorite season" key: "key1" dialog_values: - item_name: "春" item_value: "Spring" - item_name: "夏" item_value: "Summer" - item_name: "秋" item_value: "Autumn" - item_name: "冬" item_value: "Winter" - type: "select" label: "your favorite color" key: "key2" dialog_values: - item_name: "赤" item_value: "Red" - item_name: "青" item_value: "Blue" - item_name: "黄" item_value: "Yellow" - item_name: "緑" item_value: "Green" - type: "DatePicker" label: "...." Cards: example: type: "image_card" content: messages : "今日のメニュー" image: "http://www.image.com/new/content/1" text: "メニュー内容" link: label: "詳細はこちら" url: "https://www...." Takeover2Op: example: type: "takeover_to_op" content: messages : "オペレータに引き継ぎます。" Newest: example: type: "normal" update_at: 1574246097042 content: messages : "最新情報だよ" value: "LINKAGE-Newest" Youtube: example: type: "youtube" content: messages : "This is the best movie." videoId: "L7lc1UVf-VE" autoplay: "true" externalDocs: description: "Find out more about Swagger" url: "http://swagger.io" |
...