trails icon indicating copy to clipboard operation
trails copied to clipboard

Support formatted footprints

Open jaumard opened this issue 9 years ago • 2 comments

It would be nice if footprint can support different format like JSON:API. Also JSON:API allow to add metas datas, here is how I think it can be integrated to trails footprint :

module.export = class MyFootprint extends Footprint
{
    beforeSending(data, method, next){
         ...//Add some meta datas 
         next(null, data)
    }

}

It can be related to : https://github.com/trailsjs/trails/issues/35

jaumard avatar Dec 28 '15 09:12 jaumard

@jaumard are you still interested in this?

scott-wyatt avatar Oct 17 '17 06:10 scott-wyatt

I still think that is something that can be useful for people that want to use footprints in productions but need some customization to it. But this still need first a refactoring of Footprints to be able to extends footprints more easily per models and not globally, currently we can't extend only user footprint for example. The only way is to extend global footprint service and filter by model witch is quite heavy to do

jaumard avatar Oct 17 '17 07:10 jaumard