APIs Calling
Crema has some predefined hooks and functions to call the APIs without writing redundant code like sending tokens and other extra configurations in APIs.
Crema has some predefined hooks and functions to call the APIs without writing redundant code like sending tokens and other extra configurations in APIs. These functions are directly linked with your authentication method as well, so you don't need anything special to call APIs without any extra setup.
GET: to fetch the data from the API. We can use this pre-defined hook
POST: To save data using the API function
PUT: To save data using the API function
DELETE: To Delete entry using the API function