Express
Review, Research, and Discussion
-
Whats the difference between Put
and Patch
?
-Put
is used for creating a new resourse and replacing the old one.
-Patch
is used to modify or update and resource.
- Provide links to 3 services or tools that allow you to “mock” an API for development like json-server?
- Compare and contrast Swagger and APIDoc.js
- Swagger: It is a free cloud-based API testing and documentation tool to simplify the validation of any API and generate its corresponding OpenAPI documentation.
- ApiDoc: it creates a documentation from API annotations in the source code. It includes a default template which uses handlebars, Bootstrap, RequireJS and jQuery for the output of the generated api_data.js and api_project.js as a html-page.
- Which HTTP status codes should be sent with each type of (un)successful API call?
400
- Bad Request
401
- Unauthorized
403
- Forbidden
404
- Not Found
405
- Method Not Allowed
409
- Conflict
500
- internal Sever Error
503
- Service Unavailable
- Compare and contrast SOAP and ReST
- SOAP: (Simple Object Access Protocol) is a standards-based web services access protocol that has been around for a long time. Originally developed by Microsoft, SOAP isn’t as simple as the acronym would suggest.
- Works well in distributed enterprise environments
- Standardized
- SOAP uses XML for all messages
- REST: (Representational State Transfer) is another standard, made in response to SOAP’s shortcomings. It seeks to fix the problems with SOAP and provide a simpler method of accessing web services.
- REST requires use of HTTP
- Smaller learning curve
- Fast and Efficient
Vocabulary Terms
- Terms:
- Web Server: A web server is software and hardware that uses HTTP and other protocols to respond to client requests made over the World Wide Web.
- Express: It is the most popular Node web framework, and is the underlying library for a number of other popular Node web frameworks.
- Routing: The process by which requests (which are specified by URL and HTTP method) are routed to code that takes care of them.
- WRRC: Web Request/Response Cycle.
Sources
PUT vs Patch
Apidocjs vs Swagger
Status Codes
SOAP vs REST