Understanding API Methods
C
API methods are used to tell an API or database what we want to do with information. GET is used to get information from an API or database. This is the method I have already worked with. POST is used to add new information, like creating a new user or blog post. PATCH is used to change information that already exists, like updating a blog post. DELETE is used to remove information that is already saved. GET gets information, POST adds information, PATCH changes information, and DELETE removes information. They can all be used together in the same application. These four methods give an application different ways to work with information in an API or database.
Save
Comments
Log in to leave a comment.
