Http

Resources

Overview

In a Laravel-based e-com API, resource classes are used to transform and structure data before sending it to clients. They ensure that API responses are consistent and well-organized.


Resource Classes

  • SavedListResource: Represents data related to saved lists for users.
  • SSOResponseResource: Transforms data for Single Sign-On (SSO) responses.
  • StockResource: Provides information about product stock levels.
  • TaxonomyHierarchyResource: Represents hierarchical taxonomy data.
  • TaxonomyNotesResource: Transforms taxonomy notes into a structured format.
  • TaxonomyResource: Represents taxonomy-related data.
  • TransactionResource: Transforms transaction data for API responses.
  • AccountResource: Represents account-related information.
  • ApplicationResource: Provides data for application-related operations.
  • AttributeResource: Transforms attribute data for various entities.
  • BranchResource: Represents branch details and information.
  • CountryResource: Provides country-related data.
  • CustomerAddressResource: Represents customer address information.
  • CustomerResource: Transforms customer data for API responses.
  • CustomerSpendStatsResource: Provides statistics on customer spending.
  • DeliveryMethodsResource: Represents available delivery methods.
  • DeliveryStatusResource: Provides the status of deliveries.
  • NewsletterResource: Represents data related to newsletter subscriptions.
  • OrderAddressResource: Transforms order address details.
  • OrderAttributeResource: Represents attributes associated with orders.
  • OrderChannelsResource: Provides data on order channels.
  • OrderItemResource: Represents individual items within an order.
  • OrderResource: Transforms order data for API responses.
  • PickUpPointLocationResource: Represents locations for pick-up points.
  • PostcodeResource: Provides data related to postcodes.
  • ProductEstimatedDeliveryResource: Transforms data on estimated delivery times for products.
  • ProductResource: Represents product information.
  • ProductYoutubeVideoResource: Provides data on YouTube videos related to products.
  • PromotionResource: Represents details of promotions and discounts.
  • RedirectResource: Handles data related to URL redirections.
  • RelatedOrderResource: Provides details of orders related to the current order.

Summary

Laravel resource classes are crucial for formatting and structuring data before it is sent to clients. By using these resources, the API ensures that responses are consistent and well-organized, supporting effective data communication and interaction with clients.


Copyright © 2026