github.com/instill-ai/component@v0.16.0-beta/pkg/base/openapi.go (about) 1 package base 2 3 const OpenAPITemplate = ` 4 { 5 "openapi": "3.0.0", 6 "info": { 7 "version": "1.0.0", 8 "title": "Connector OpenAPI" 9 }, 10 "paths": { 11 "/execute": { 12 "post": { 13 "requestBody": { 14 "required": true, 15 "content": { 16 "application/json": { 17 "schema": { 18 "type": "object", 19 "properties": { 20 "inputs": { 21 "type": "array", 22 "items": {} 23 } 24 } 25 } 26 } 27 } 28 }, 29 "responses": { 30 "200": { 31 "description": "", 32 "content": { 33 "application/json": { 34 "schema": { 35 "type": "object", 36 "properties": { 37 "outputs": { 38 "type": "array", 39 "items": {} 40 } 41 } 42 } 43 } 44 } 45 } 46 } 47 } 48 } 49 } 50 } 51 `