DEV Community

Discussion on: Quickly and easily mock a REST API with Restapify

Collapse
 
flippingflapping profile image
flippingflapping

Great library, very simple and quick to use, thanks!

Is it possible to inject my own fake data across multiple fields in an array of objects? I see I can use the for-loop's array sequence and can inject each array value, but is it limited to iterating over an array of strings? Say, could I iterate over an array of objects so that I can use each prop and inject multiple values per iteration?

Collapse
 
johannchopin profile image
johannchopin

You are welcome thanks a lot for your comment 👍

So sadly there is no actual way to achieve such a thing with the for loop syntax 😥 However if you are motivated to help I could suggest you to open an issue and add some idea of implementation. It's not there yet but we can build it 💪