To make a valid request, the client needs to include four things:
URL ( Uniform Resource Locator)
Method
List of Headers
Body
URL
URLs become an easy way for the client to tell the server which things it wants to interact with, called resources.
Method
The method request tells the server what kind of action the client wants the server to take in. The four most commonly seen in API’s are:
GET — Asks the server to retrieve a resource.
POST — Asks the server to create a new resource.
PUT — Asks the server to edit/update an existing resource.
DELETE — Asks the server to delete a resource.
Headers
Headers provide meta-information about a request.
Body
The request body contains the data the client wants to send the server.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
maj
5 years, 10 months agomaj
5 years, 9 months ago