REST API is used. At work, I’ve recently been asked to give a request endpoint. For example, I have a request api/products/product-search. How to find out what data it returns?
Maybe it’s a stupid question, but still
REST API is used. At work, I’ve recently been asked to give a request endpoint. For example, I have a request api/products/product-search. How to find out what data it returns?
Maybe it’s a stupid question, but still
2
Answers
if you are using axios you can make this:
I hope it’s usefull
You can use fetch and console log to see what are returns.
Also, you can use tools for testing APIs, such as Postman, Insomnia, or cURL.