minecraft_versions

MinecraftVersionsClient - the Ruby gem for the

SDK for Minecraft versions info

This SDK is automatically generated by the OpenAPI Generator project:

Installation

Build a gem

To build the Ruby code into a gem:

gem build minecraft_versions.gemspec

Then either install the gem locally:

gem install ./minecraft_versions-0.12.0.gem

(for development, run gem install --dev ./minecraft_versions-0.12.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 'minecraft_versions', '~> 0.12.0'

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/oapicf/minecraft-versions, then add the following in the Gemfile:

gem 'minecraft_versions', :git => 'https://github.com/oapicf/minecraft-versions.git'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'minecraft_versions'

api_instance = MinecraftVersionsClient::DefaultApi.new

begin
  #Get Minecraft version manifest
  result = api_instance.get_minecraft_version_manifest
  p result
rescue MinecraftVersionsClient::ApiError => e
  puts "Exception when calling DefaultApi->get_minecraft_version_manifest: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://launchermeta.mojang.com

Class Method HTTP request Description
MinecraftVersionsClient::DefaultApi get_minecraft_version_manifest GET /mc/game/version_manifest.json Get Minecraft version manifest
MinecraftVersionsClient::DefaultApi get_minecraft_version_package_info GET /v1/packages/packageId/versionId.json Get Minecraft version package info

Documentation for Models

Documentation for Authorization

Endpoints do not require authorization.