Sha256: e387b9f2d5a45507f05e14a9d4a63bfbdbabb755eca4d9e58fde3e7eb75ebc12
Contents?: true
Size: 604 Bytes
Versions: 17
Compression:
Stored size: 604 Bytes
Contents
# frozen_string_literal: true require_relative 'application_api_client' # An usage example of the `my_api_client`. # See also: my_api/app/controllers/status_controller.rb class MyStatusApiClient < ApplicationApiClient error_handling status_code: 400, raise: MyErrors::BadRequest error_handling status_code: 401, raise: MyErrors::Unauthorized error_handling status_code: 403, raise: MyErrors::Forbidden # GET status/:status def get_status(status:) get "status/#{status}", headers: headers end private def headers { 'Content-Type': 'application/json;charset=UTF-8' } end end
Version data entries
17 entries across 17 versions & 1 rubygems