wisdom-framework / wisdom

A modular and dynamic web framework
http://wisdom-framework.org
Apache License 2.0
88 stars 42 forks source link

Make a non-static version of the Results#status method #563

Closed Riduidel closed 7 years ago

Riduidel commented 7 years ago

In order to implement HATEOAS controller with style, I would like to have a non static version of the Results#status method. This way, I would be able, through annotation on controller method and overwriting of the Result class, able to inject links in returned JSON values.

Riduidel commented 7 years ago

Not yet sure if it's the best way. I must first think a little more about that HATEOS thingie.

cescoffier commented 7 years ago

Can't use use an interceptor for this ?