Skip to content

Methods

  • GET: This method retrieves information from the API. Use it when you want to access specific data, such as product details or a list of users.

  • POST: This method sends new data to the API, typically to create a new resource. Use it to submit information for the API to process and save.

  • PUT: This method completely replaces an existing resource with new data. Use it to edit an entire resource and save the updated version, which will overwrite the previous one.

  • PATCH: This method partially updates an existing resource, modifying only specific fields or properties. Use it for small adjustments to a resource without replacing the entire entity.

  • DELETE: This method removes a resource from the API. Use it when you want to eliminate a resource permanently.

Note

Selecting the appropriate method depends on the action you intend to perform and the specifications outlined in the API documentation. Always refer to the documentation to determine the available methods and their correct usage.