Hacker News new | ask | show | jobs
by krsyoung 3496 days ago
I still lean heavily on the framework to help with the API aspects (i.e. Rails, Sinatra, Express, Flask ...). I now consistently (at least in my mind) document the APIs via Open API Specification (swagger) and use that for documentation.

For DB-centric projects I've used things like StrongLoop and DreamFactory which makes turning a DB into a REST API very simply. Key is that the DB is just being turned into REST ... no much logic in the middle.

Foxx looks cool, have not tried it but claims to be similar to Sinatra.

For exposing, it really depends if you are exposing internally or externally. Worth checking out something like Kong to act as your API gateway and leave some of the complexity out of the backend services when / if possible.

1 comments

Thanks for all the great info. DreamFactory looks super interesting.