-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathapi.pannous.com.yaml
112 lines (108 loc) · 4.13 KB
/
api.pannous.com.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
openapi: 3.0.1
# see .well-known/ai-plugin.json
# deployed as http://files.pannous.com/.well-known/ai-plugin.json
# deployed as http://files.pannous.com/openapi.yaml current
# deployed as https://api.pannous.com/.well-known/ai-plugin.json
# deployed as https://api.pannous.com/openapi.yaml current
# deployed as http://files.pannous.com/v1/openapi.yaml
# deployed as http://files.pannous.com/v2/openapi.yaml
# see https://platform.openai.com/docs/plugins/production/updating-your-plugin
# Currently, manifest files must be manually updated
# by going through the "Develop your own plugin" flow in the plugin store each time you make a change to the file.
# ChatGPT will automatically fetch the latest OpenAPI spec each time a request is made.
# compare https://www.wolframalpha.com/.well-known/ai-plugin.json
info:
title: Jini Assistant AI API
description: Get factual, knowledge-base and real-time information. The only smart assistant you'll ever need. Search images, videos, music, apps and facts. Get the latest news, twitter trends, sports scores, (stock) prices, celebrity and country data, navigation routes, public transport and traffic info, etc.?. Acts as a proxy to make any information that exists online available. Five million users via the app http://www.voice-actions.com/.
version: 'v1.0'
# comment: THIS IS THE OLD CLUTTERED API,
# PLEASE USE THE NEW ONE AT https://api.pannous.com
contact:
name: Pannous
email: info@pannous.com
servers:
- url: http://localhost:8080
description: Local test server
- url: https://api.pannous.com
description: Production server
paths:
/?query={query}:
# &locale={locale}
get:
operationId: query
summary: Get realtime data, facts and answers to questions
parameters:
- in: path
name: query
schema:
type: string
required: true
description: query for any realtime data, such as date, time, news, location, navigation routes, weather, events etc.
# - in: path
# name: locale
# schema:
# type: string
# required: false
# description: user language e.g. 'en'
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/queryResponse'
components:
schemas:
queryResponse:
type: object
description: The response from the Jini Assistant AI API.
properties:
output:
type: array
description: Array of result outputs for the query.
items:
type: object
description: result output for the query.
properties:
handler:
type: string
results:
type: object
additionalProperties: true
description: raw answer data or additional (un)structured data
entities:
type: object
properties:
input:
type: string
description: the actual question condensed to extracted entities
locale:
type: string
additionalProperties: true
description: additional properties can include from,to locations in navigation etc
# from:
# type: string
# description:
actions:
type: object
properties:
say:
type: object
properties:
text:
type: string
description: the actual answer!
open:
type: object
properties:
url:
type: string
description: the url to open
show:
type: object
properties:
url:
type: string
description: the url to show
responseTime:
type: integer