Actually I have a params : id, token, action:”hosts”
Some example like Getting host= “https://example.com/mnt/api/v1/store/1/actions“
- How to pass the required parameters to the endpoint. (or) How to call end point with required data ?
Actually I have a params : id, token, action:”hosts”
Some example like Getting host= “https://example.com/mnt/api/v1/store/1/actions“
2
Answers
Not entirely sure what you are after, if you are after how to call that using jquery ajax, then it will be something like this. I haven’t used jQuery for a while, but base on my memory this is what I used to write. Also you can find more information from https://api.jquery.com/jquery.ajax/
You can pass the parameters to a function, add the variables to the url and then reference the url in the ajax call instead of the url address e.g.