Open apprentice1988 opened 3 years ago
@apprentice1988 Hi, thanks! this is a good idea💡 We will consider whether to add this feature.
I hope there is a way:
OK! My current understanding is that you need a functional mock, the data from the API? Because I don’t quite understand the specific purpose of the SyncAPI file, but the script function provides some functions for generating mock data, you can refer to this article:
Motivation
Like Postman, I hope Mqttx have a snippets to store a list of [topic and message]. Then I can mock device different kinds of message quickly.
Detailed design
In the left bar add a [Snippets] below [Scripts] to manage my snippets. I can add messages with topics in this section. Then in the [Connection] tab, I can select a snippet to send if i don't want to edit message manually.