How to automate to make request for api using Insominia
Introduction
Recently I needed to make a request for one endpoint a lot of times, so I started searching about one feature in Insominia to help me to do that.
So I discovered one interest feature in Insominia allow me to configure to make request for me, where dispatch request after specific interval and only stop if cancel the process.
Now, I am here to share with everyone, because I believe it can be helpful to you as it was helpful for me.
How to automate
First, open your Insominia and add url you want make request like image below:
Second click button in right side of button Send to show something like image below:
Third, click option Repeat on interval, after clicked the option go to show modal to configure interval between each request like image bellow:
Fourth, In field Interval in seconds you set the interval you want and click button Start, so now Insominia took responsibility to execute request for you like image bellow:
Fifth, If you want Insominia stops execution you need only click button Cancel.
Conclusion
This feature is a good solution for the following situations: you need to make a request a lot of times at the same endpoint or if you want to simulate how your api behaves if it receives more than 1 request per second in a specific period of time.
If you are interested in the second situation, the only thing you need to go back to the fourth step and modify is field Interval in seconds for values like: 1 or 0.5.
I finished here. I hope this text was helpful to you and thank you for your time.
Coordenador de TI | Engenheiro de Inovação | Especialista em Desenvolvimento de Software
1yTiago, very good! Just correct your use of the word Insominia, the correct one is Insomnia. 😁