How to modify the D2-REST controller boilerplate?

Can you give me an example that will return a string 'Helloworld'? I keep getting 500 error when modifying.

Eventually the goal is to call D2 rest endpoint, and the code will call another api inside the rest code and return json.

Answers