Saturday 23 December 2017

Writing a Good API Wrapper?

Hi all,Looking for any standards/guides to write an API wrapper for my applications that I can publish to NPM or something.My thinking is that I essentially replicate the methods I use in the routes (like userHandler.getById()) into model methods (like API.user.getById(), translating on either side into AJAX or responses.What do you think? Do you ever write wrappers for your APIs? Do you follow a standard.Appreciate any help!

Submitted December 23, 2017 at 09:59PM by Crowesco

No comments:

Post a Comment