-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weekly Support, 29th May 2019 #36
Comments
Hi! Those with issues on the HTTP verbs this link could be useful https://www.restapitutorial.com/lessons/httpmethods.html |
Get is used to request data from a specified resource. |
What is the difference between a PATCH method and a PUT method? A PATCH method can be used to update existing information partially in a server , while a PUT method can be used to update it entirely. For example: |
API responseWhatHTTP status codes are standard response codes communicated by the server to the client to tell about a request. A status code is a number that tells us if request has been successfully completed. You don’t need to know every HTTP status code, but there are important HTTP status codes you must be familiar with
focus more on 2xx and 4xx. A detailed reference can be found here see Docs and here WhyThere are many reasons to why they are important, here is a few from the top of my head
|
Oops my bad @lupyana, I've tried to change it but still getting the same response |
Check on how you are assigning the id from request parameter, Just before you return the response. Is that correct? |
Did you declare the _id variable? |
Is that the new syntax of assigning variables? |
Can i use get, post, put method in one API file ? or do i need different file for every API method? 1)It is okay if it works but not recommended because of its difficult in maintenance See #38 |
it's working now @lupyana @landrykapela thank you guys |
Hi all!
Kindly drop in any question on the topic: Building Web Services using Node.js.
We will be joining a Q & A session with 17:00 HRS EAT. Please attend without fail to be able to unlock and unblock your world-class developer potential.
Join Zoom Meeting using https://andela.zoom.us/j/668566256
The text was updated successfully, but these errors were encountered: