Skip to content

Commit 41e6894

Browse files
Updated examples
1 parent 9e9c12c commit 41e6894

File tree

1 file changed

+86
-92
lines changed

1 file changed

+86
-92
lines changed

README.md

+86-92
Original file line numberDiff line numberDiff line change
@@ -23,58 +23,55 @@ https://api.dictionaryapi.dev/api/v2/entries/en/hello, result returned will be,
2323

2424
```json
2525
[
26-
{
27-
"word": "hello",
28-
"phonetics": [
29-
{
30-
"text": "/həˈloʊ/",
31-
"audio": "https://lex-audio.useremarkable.com/mp3/hello_us_1_rr.mp3"
32-
},
33-
{
34-
"text": "/hɛˈloʊ/",
35-
"audio": "https://lex-audio.useremarkable.com/mp3/hello_us_2_rr.mp3"
36-
}
37-
],
38-
"meanings": [
39-
{
40-
"partOfSpeech": "exclamation",
41-
"definitions": [
42-
{
43-
"definition": "Used as a greeting or to begin a phone conversation.",
44-
"example": "hello there, Katie!"
45-
}
46-
]
47-
},
48-
{
49-
"partOfSpeech": "noun",
50-
"definitions": [
51-
{
52-
"definition": "An utterance of “hello”; a greeting.",
53-
"example": "she was getting polite nods and hellos from people",
54-
"synonyms": [
55-
"greeting",
56-
"welcome",
57-
"salutation",
58-
"saluting",
59-
"hailing",
60-
"address",
61-
"hello",
62-
"hallo"
63-
]
64-
}
65-
]
66-
},
67-
{
68-
"partOfSpeech": "intransitive verb",
69-
"definitions": [
70-
{
71-
"definition": "Say or shout “hello”; greet someone.",
72-
"example": "I pressed the phone button and helloed"
73-
}
74-
]
75-
}
26+
{
27+
"word": "hello",
28+
"phonetic": "həˈləʊ",
29+
"phonetics": [
30+
{
31+
"text": "həˈləʊ",
32+
"audio": "//ssl.gstatic.com/dictionary/static/sounds/20200429/hello--_gb_1.mp3"
33+
},
34+
{
35+
"text": "hɛˈləʊ"
36+
}
37+
],
38+
"origin": "early 19th century: variant of earlier hollo ; related to holla.",
39+
"meanings": [
40+
{
41+
"partOfSpeech": "exclamation",
42+
"definitions": [
43+
{
44+
"definition": "used as a greeting or to begin a phone conversation.",
45+
"example": "hello there, Katie!",
46+
"synonyms": [],
47+
"antonyms": []
48+
}
7649
]
77-
}
50+
},
51+
{
52+
"partOfSpeech": "noun",
53+
"definitions": [
54+
{
55+
"definition": "an utterance of ‘hello’; a greeting.",
56+
"example": "she was getting polite nods and hellos from people",
57+
"synonyms": [],
58+
"antonyms": []
59+
}
60+
]
61+
},
62+
{
63+
"partOfSpeech": "verb",
64+
"definitions": [
65+
{
66+
"definition": "say or shout ‘hello’.",
67+
"example": "I pressed the phone button and helloed",
68+
"synonyms": [],
69+
"antonyms": []
70+
}
71+
]
72+
}
73+
]
74+
}
7875
]
7976
```
8077

@@ -83,49 +80,46 @@ The API earlier use to send response as shown below, but this structure of respo
8380

8481
```json
8582
[
86-
{
87-
"word": "hello",
88-
"phonetics": [
89-
{
90-
"text": "/həˈloʊ/",
91-
"audio": "https://lex-audio.useremarkable.com/mp3/hello_us_1_rr.mp3"
92-
},
93-
{
94-
"text": "/hɛˈloʊ/",
95-
"audio": "https://lex-audio.useremarkable.com/mp3/hello_us_2_rr.mp3"
96-
}
97-
],
98-
"meaning": {
99-
"exclamation": [
100-
{
101-
"definition": "Used as a greeting or to begin a phone conversation.",
102-
"example": "hello there, Katie!"
103-
}
104-
],
105-
"noun": [
106-
{
107-
"definition": "An utterance of “hello”; a greeting.",
108-
"example": "she was getting polite nods and hellos from people",
109-
"synonyms": [
110-
"greeting",
111-
"welcome",
112-
"salutation",
113-
"saluting",
114-
"hailing",
115-
"address",
116-
"hello",
117-
"hallo"
118-
]
119-
}
120-
],
121-
"intransitive verb": [
122-
{
123-
"definition": "Say or shout “hello”; greet someone.",
124-
"example": "I pressed the phone button and helloed"
125-
}
126-
]
83+
{
84+
"word": "hello",
85+
"phonetic": "həˈləʊ",
86+
"phonetics": [
87+
{
88+
"text": "həˈləʊ",
89+
"audio": "//ssl.gstatic.com/dictionary/static/sounds/20200429/hello--_gb_1.mp3"
90+
},
91+
{
92+
"text": "hɛˈləʊ"
93+
}
94+
],
95+
"origin": "early 19th century: variant of earlier hollo ; related to holla.",
96+
"meaning": {
97+
"exclamation": [
98+
{
99+
"definition": "used as a greeting or to begin a phone conversation.",
100+
"example": "hello there, Katie!",
101+
"synonyms": [],
102+
"antonyms": []
103+
}
104+
],
105+
"noun": [
106+
{
107+
"definition": "an utterance of ‘hello’; a greeting.",
108+
"example": "she was getting polite nods and hellos from people",
109+
"synonyms": [],
110+
"antonyms": []
111+
}
112+
],
113+
"verb": [
114+
{
115+
"definition": "say or shout ‘hello’.",
116+
"example": "I pressed the phone button and helloed",
117+
"synonyms": [],
118+
"antonyms": []
127119
}
120+
]
128121
}
122+
}
129123
]
130124
```
131125

0 commit comments

Comments
 (0)