I found a dictionary API, I try to send a word and receive a synonym in return, in JavaScript, I can pass two parameters (word, limit), can you help me please pointing me in the right direction. Please check the picture I provided to see the small documentation to the API, not much info on it screenshot of the API doc. I'm trying to set an input to enter a word, or several words, and then return a synonym for each.
Thank you for your help.
Here is a piece of code that I found online that I try to work with :
`const userAction = async() => {
const response = await fetch('https://api.dicolink.com/v1/mot/synonymes?limite=1&api_key=XXXXX', {
method : 'POST',
body: myBody,
headers : {
'Content-Type': 'application/json'
}
});
const myJson = await response.json();
}`