This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
path '/api/v1/projects/{id}' do | |
get 'Get one project' do | |
tags 'Projects' | |
security [ bearer: [] ] | |
consumes 'application/json', 'application/xml' | |
parameter name: :id, :in => :path, :type => :integer | |
response '200', 'get all projects' do | |
it "test skipe" do end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Message | |
include ActiveModel::Validations | |
include ActiveModel::Conversion | |
extend ActiveModel::Naming | |
attr_accessor :name, :surname, :email, :phone, :country, :body, :subject | |
validates :name, :surname, :email, :phone, :country, :body, :presence => true | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#searchable do | |
# text :name | |
# text :owner_name | |
# integer :designer_ids, :multiple => true do | |
# designers.map(&:id) | |
# end | |
# string :letters, :multiple => true do | |
# designers.map(&:name).map{|letter| letter.first.capitalize} | |
# end | |
# #integer :season_ids, :multiple => true do |