class Strapi::Request
A convenience wrapper around Faraday to make a request to the Strapi
API
Constants
- ALLOWED_PARAM_KEYS
- REQUEST_VERBS_WITHOUT_BODIES
Private Class Methods
validate_query_params(params)
click to toggle source
# File lib/strapi/request.rb, line 26 def validate_query_params(params) unallowed_query_params = params.keys - ALLOWED_PARAM_KEYS return unless unallowed_query_params.size.positive? raise( Error, 'message' => "Unallowed query params - #{unallowed_query_params.join(', ')}" ) end