Express
1- What’s the difference between PUT and PATCH?
PUT is a method of modifying resource where the client sends data that updates the entire resource.
PATCH is used when you want to apply a partial update to the resource.
2- Provide links to 3 services or tools that allow you to “mock” an API for development like json-server
Postman Stoplight Mocky.io.
3- Compare and contrast Swagger and APIDoc.js 1 Which HTTP status codes should be sent with each type of (un)successful API call?
1- Swagger status Codes:
responses: 200: description: OK 400: description: Bad request. User ID must be an integer and bigger than 0. 401: description: Authorization information is missing or invalid. 404: description: A user with the specified ID was not found.
2- APIDoc.js HTTP status Codes:
200 : Successful request and response. 400 : Bad request 404 : Not found 500 : Unexpected error
apiDocjs: Inline Documentation for RESTful web APIs, It creates a documentation from API annotations in your source code. It includes a default template which uses handlebars, Bootstrap, RequireJS and jQuery for the output of the generated apidata.js and apiproject.js as a html-page
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.
4- 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
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
Document the following Vocabulary Terms 1- Web Server
A web server is the technology that serves up a website to users when they visit a URL. On the technical side of things, what that means is that it handles the hypertext transfer protocol (HTTP)
2- Express
Web Applications Express is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications. 3- Routing
Routing : refers to how an application’s endpoints (URIs) respond to client requests, and define routing using methods of the Express app object that correspond to HTTP methods
