A work in progress When building your RESTful API, one of the easiest ways to know if the process completed as expected or not is the HTTP status codes returned by the server. That’s why I always use the HTTP status codes for testing, before getting into more elaborate testing of the server response. UnderneathContinue reading “HTTP Status Codes for your REST API”
Category Archives: Tutorials
Control flow in express.js route – return vs next()
When working with routes, often two or more outcomes are wanted. This calls for controlling the flow of data when for instance sending and put request to the application. In contrary to an “normal” application – one that runs offline, that doesn’t follow the request-response architecture – one would usually use “return” in order toContinue reading “Control flow in express.js route – return vs next()”