1.What is the difference betweenPUT
and PATCH
?
A PUT
request replaces data or creates new data where specified. PATCH
will only partially update data without affecting anything else. source
2. Links to 3 services/tools that allow you to “mock” and API for development like json-server
3. Swagger vs APIDoc.js Status codes
Swagger source
200
= successful400
= bad request401
= missing or invalid authorization information404
= User ID not found5XX
= Unexpected errorApidocsjs source
Object response ex:
{
"error": " " ,
"route": " ",
"message":
}
4. SOAP vs REST
REST was created to make up for what SOAP (more old school and relies on XML) lacks. SOAP messaging patterns are more strict while REST is more flexible and does not require processing. Both are used to access web services. source
5. TERMS
Web Server
Express
Routing
WRRC
Node
Express
## NPM
Software registry where developers around the world can share and borrow packages.
NPM has 3 components:
the web
CLI (command line interface)
the registry
TDD = Test-Driven Development
Coding + Testing + Design. Uses 1 unit test to describe aspect of program. If program lack feature the test will fail so write enough code that it passes and refactor the code to become more simple.
CI - workflow strategy that helps integrates multiple changes to a project. Helps catch bugs and reduce merge conflicts.
CD - Delivery is a strategy where you can deploy anytime. Deployment extends off of delivery where you can deploy the new features quickly.