Class: Api::V5::BaseController
- Inherits:
-
ActionController::API
- Object
- ActionController::API
- Api::V5::BaseController
- Includes:
- Concerns::RescueErrors, ElasticAPM::SpanHelpers, ElasticApmContext, LogrageCustomLogger, Recaptcha::Adapters::ControllerMethods, ResponseCacheConcern
- Defined in:
- app/controllers/api/v5/base_controller.rb
Overview
Base controller for V5 API
Direct Known Subclasses
AdaptivePointsController, AddOnPackagesController, BannersController, BlogPostsController, BranchController, CitiesController, CompactRestaurantsController, Corporates::EventsController, CountriesController, CreditCardsController, CuisinesController, CustomLabelsController, FavoriteRestaurantsController, GoogleMapController, GroupLandingPagesController, HomesController, HungryhubSpecialsController, LocationsController, LoyaltyLevelsController, NotificationsController, PackageTypesController, PagesController, PasswordsController, PendingTransactionsController, PhoneVerificationsController, PointsController, PromotionsController, RecommendationsController, ReservationsController, RestaurantPackagesController, RestaurantTagGroupsController, RestaurantTagsController, RestaurantsController, ReviewsController, SearchesController, ServiceTypesController, SubscribeEmailsController, TemporaryReservationsController, TicketGroupsController, TicketTransactionsController, TicketsController, UserAddressesController, UserIpLocationsController, UserRestaurantHistoriesController, Users::DevicesController, UsersController, Vendors::TagThai::UsersController, VoucherTransactionsController, VouchersController
Constant Summary collapse
- INTERNAL_SERVER_ERROR_MESSAGE =
'Sorry, something went wrong'- ResponseSchema =
Response schema of this API
ImmutableStruct.new(:data, :message, :success)
- CACHE_NAMESPACE =
'api_v5_cache'
Instance Method Summary collapse
Methods included from LogrageCustomLogger
Methods included from ResponseCacheConcern
Instance Method Details
#identity_cache_memoization(&block) ⇒ Object
19 20 21 |
# File 'app/controllers/api/v5/base_controller.rb', line 19 def identity_cache_memoization(&block) IdentityCache.cache.with_memoization(&block) end |