forked from dev-magdy/Shreyash-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
thesaurus.yaml
123 lines (123 loc) · 2.89 KB
/
thesaurus.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
112
113
114
115
116
117
118
119
120
121
122
123
openapi: 3.0.1
info:
title: Thesaurus
description: This is a Thesaurus which uses Wikitionary as a source.
version: "2"
servers:
- url: https://api.dictionaryapi.dev/api/v2
paths:
/entries/en/{word}:
get:
description: Search the thesaurus for a given word.
operationId: findWord
parameters:
- name: word
in: path
description: The word to search the dictionary for
required: true
schema:
type: string
format: string
responses:
"200":
description: A list of the matched words with their linguistic information.
content:
application/json; charset=utf-8:
schema:
$ref: "#/components/schemas/WordResponse"
"404":
description: No match found for word
content:
application/json; charset=utf-8:
schema:
$ref: "#/components/schemas/NotFoundResponse"
servers:
- url: https://api.dictionaryapi.dev/api/v2
servers:
- url: https://api.dictionaryapi.dev/api/v2
components:
schemas:
WordResponse:
type: array
items:
$ref: "#/components/schemas/WordItem"
WordItem:
type: object
properties:
word:
type: string
phonetic:
type: string
phonetics:
type: array
items:
$ref: "#/components/schemas/PhoneticItem"
meanings:
type: array
items:
$ref: "#/components/schemas/MeaningItem"
license:
$ref: "#/components/schemas/License"
sourceUrls:
type: array
items:
type: string
PhoneticItem:
type: object
properties:
text:
type: string
audio:
type: string
sourceUrl:
type: string
license:
$ref: "#/components/schemas/License"
MeaningItem:
type: object
properties:
partOfSpeech:
type: string
definitions:
type: array
items:
$ref: "#/components/schemas/DefinitionItem"
synonyms:
type: array
items:
type: string
antonyms:
type: array
items:
type: string
DefinitionItem:
type: object
properties:
definition:
type: string
synonyms:
type: array
items:
type: string
antonyms:
type: array
items:
type: string
example:
type: string
License:
type: object
properties:
name:
type: string
url:
type: string
NotFoundResponse:
type: object
properties:
title:
type: string
message:
type: string
resolution:
type: string