SwaggerClient - the Ruby gem for the Frontend Dummy data
No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
This SDK is automatically generated by the Swagger Codegen project:
- API version: 0.0.0
- Package version: 1.0.0
- Build date: 2016-11-14T17:39:30.514Z
- Build package: class io.swagger.codegen.languages.RubyClientCodegen
To build the Ruby code into a gem:
gem build swagger_client.gemspec
Then either install the gem locally:
gem install ./swagger_client-1.0.0.gem
(for development, run gem install --dev ./swagger_client-1.0.0.gem
to install the development dependencies)
or publish the gem to a gem hosting service, e.g. RubyGems.
Finally add this to the Gemfile:
gem 'swagger_client', '~> 1.0.0'
If the Ruby gem is hosted at a git repository: https://github.com/YOUR_GIT_USERNAME/YOUR_GIT_REPO, then add the following in the Gemfile:
gem 'swagger_client', :git => 'https://github.com/YOUR_GIT_USERNAME/YOUR_GIT_REPO.git'
Include the Ruby code directly using -I
as follows:
ruby -Ilib script.rb
Please follow the installation procedure and then run the following code:
# Load the gem
require 'swagger_client'
api_instance = SwaggerClient::DefaultApi.new
contract_status = "contract_status_example" # String | contract_status value that need to be considered for filter
begin
#Contract page returns contracts
result = api_instance.contracts_post(contract_status)
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling DefaultApi->contracts_post: #{e}"
end
All URIs are relative to https://localhost
Class | Method | HTTP request | Description |
---|---|---|---|
SwaggerClient::DefaultApi | contracts_post | POST /Contracts | Contract page returns contracts |
SwaggerClient::DefaultApi | root_post | POST / | Home page returns recent contracts and recent tours for homepage |
All endpoints do not require authorization.