Sha256: d387197a713dd4551219ffc7d0a5fb80aab9a332be68afe2b913e22b2be75019

Contents?: true

Size: 296 Bytes

Versions: 3

Compression:

Stored size: 296 Bytes

Contents

# -*- encoding : utf-8 -*-
#  This illustrates a simple get service
module DummyServices
  class Hello < Grape::API
    format :json
    content_type :json, 'application/json'

    desc 'Hello'
    get '/hello' do
      header 'Vary', 'Accept'
      { message: 'Hello World!' }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pacto-0.4.0.rc3 sample_apis/hello_api.rb
pacto-0.4.0.rc2 sample_apis/hello_api.rb
pacto-0.4.0.rc1 sample_apis/hello_api.rb