Quality is delighting customers
You can add a REST test step through Groovy like this - testRunner.testCase.addTestStep( "restrequest", "REST Request" )
But then you still need to select an interface.
What exactly are you trying to achieve by adding a step in Groovy? Why wouldn’t you use an existing REST step and instead change properties instead of creating everything from scratch?