Sha256: ff946df643936c73ba0b05816041f1867513e498a9f4cc8de3caf9367b65ff37
Contents?: true
Size: 478 Bytes
Versions: 4
Compression:
Stored size: 478 Bytes
Contents
module RestPack::Core::Service::Commands::Domain class ByIdentifier < RestPack::Service::Command required do string :identifier end optional do string :includes end def execute result = Core::Serializers::DomainSerializer.resource( inputs, Core::Models::Domain.where(identifier: inputs[:identifier]) ) if result[:domains].any? result else status :not_found end end end end
Version data entries
4 entries across 4 versions & 1 rubygems