forked from microsoft/semantic-kernel-starters
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathopenapi.yaml
56 lines (56 loc) · 1.41 KB
/
openapi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
openapi: 3.1.0
info:
title: Semantic Kernel Plugin
description: A plugin that allows the user to call Semantic Kernel Functions.
version: 'v1'
servers:
- url: http://localhost:7071
paths:
/skills/FunSkill/functions/Joke:
post:
operationId: executeJokeFunction
description: |
Execute the joke semantic function; submit the input and style as a JSON object in the payload input, e.g. {"input": "<JokeSubject>", "style": "<JokeStyle>"}
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/executeJokeFunctionRequest'
responses:
"200":
description: OK
content:
text/plain:
schema:
type: string
/hello:
get:
operationId: hello
description: |
Execute a simple hello <name> native function.
parameters:
- name: name
in: query
description: The name to say hello to.
required: true
schema:
type: string
responses:
"200":
description: OK
content:
text/plain:
schema:
type: string
components:
schemas:
executeJokeFunctionRequest:
type: object
properties:
input:
type: string
style:
type: string
required:
- input