Install
gem install modgen
Bundler
gem 'modgen'
Ruby
require 'modgen'
Modgen.configure do
client_id "1"
end
# ------------ or ------------
Modgen.config.client_id = "1"
List of all available conf.
key | example and description |
---|---|
oauth2.client_id |
Id of client generated by API server.
|
First you must discovery API. For displaying all available versions.
Modgen::Discovery.versions
Details of specific version. If version is nil Modgen show preffered version.
Modgen::Discovery.version(version)
Discover specific version. If version is nil Modgen discover preffered version.
Modgen::Discovery.discover(version)
Modgen::API.api.name
.description
.version
.created_at
.updated_at
.base_url
Modgen::API.dataset.get(id: 1)
First start testing API in /test_api and than.
rake