Core: API Resources

Created on 28 Jan 2018  路  3Comments  路  Source: adonisjs/core

When building an API, you may need a transformation layer that sits between your models and the json responses that are actually returned to your application's users. Has any feature known in adonisjs that can easily work with this method? One sample here or in laravel5.5

Most helpful comment

Hey @douglaszaltron ! 馃憢

If it's only for a model I recommend you to write your own serializer (here's the default one).
If it's for all requests you can write a middleware that is executed before sending the response.

All 3 comments

Hey @douglaszaltron ! 馃憢

If it's only for a model I recommend you to write your own serializer (here's the default one).
If it's for all requests you can write a middleware that is executed before sending the response.

Closing since no response from the issue reporter and not actionable as well

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PC-HUB picture PC-HUB  路  4Comments

seanc picture seanc  路  4Comments

blendsoft picture blendsoft  路  3Comments

begueradj picture begueradj  路  3Comments

milosdakic picture milosdakic  路  3Comments