module RopenPi::Response
Public Class Methods
collection(ref, desc: 'tba', type: RopenPi::APP_JSON)
click to toggle source
rubocop:disable Metrics/MethodLength
# File lib/ropen_pi/config_helper.rb, line 115 def self.collection(ref, desc: 'tba', type: RopenPi::APP_JSON) { description: desc, content: { type => { schema: { type: 'object', properties: { data: { type: :array, items: { '$ref': ref } } } } } } } end
single(ref, desc: 'tba', type: RopenPi::APP_JSON)
click to toggle source
# File lib/ropen_pi/config_helper.rb, line 129 def self.single(ref, desc: 'tba', type: RopenPi::APP_JSON) { description: desc, content: { type => { schema: { type: 'object', properties: { data: { '$ref': ref } } } } } } end