postmanlabs / postman-code-generators

Common repository for all code generators shipped with Postman
Apache License 2.0
992 stars 352 forks source link

Add Groovy language in Generate Code Snippets #207

Open isharifkhan opened 4 years ago

isharifkhan commented 4 years ago

Hello,

It would be very useful to have Groovy as one of the language options in the Generate Code Snippets pop up. I have been trying to use the Javascript code snippets, but they aren't formatted quite right for my application using Groovy script and I am having to edit and troubleshoot too much. Thank you.

Antolius commented 4 years ago

Have you tried using Java snippets? Groovy, while not a strict superset of Java, is close to being able to parse all Java code. You might have to tweak some Java 8 or later syntax (like :: method references or var keyword) but I don't think code snippets contain that.

kiliczsh commented 3 years ago

Any update about Groovy snippets?