Open HenryMorgan-cd2 opened 7 years ago
@james-cd2 thoughts???? this should come with helper methods:
and maybe
For use in custom APIs, presumably? For tests/console work these would be very helpful too. I'd be in favour of render_api, especially since it would be pretty easy to implement: ArticlesApi.new(Cord::ApiBaseController, {}).get
Though, the api would need to be modified to use @params
over deferring to the controller's params.
THIS REQUEST:
produces this response: