DEV Community

Md Shah Jalal
Md Shah Jalal

Posted on

What is API? Difference between Get and Post?

API stands for Application Programming Interface.
Differences between the most common HTTP method get and post.

Get

  • Get requests are used to only request data
  • Get requests can be cached
  • Get requests remain in the browser history
  • Get requests can be bookmarked
  • Get requests have restrictions on data length

Post

  • Post requests are used to create or update data
  • Post requests can’t be cached
  • Post requests don’t remain in the browser history
  • Post requests can’t be bookmarked
  • Post requests have no restrictions on data length

Top comments (0)