Class: Datacentred::Request::Versions

Inherits:
Base
  • Object
show all
Defined in:
lib/datacentred/request/versions.rb

Overview

RESTful API requests for the versions endpoint.

This model does not require authentication.

An API version may be:

  • CURRENT - The latest supported version.

  • SUPPORTED - A supported older version.

  • DEPRECATED - Currently supported but soon to be retired.

Class Method Summary collapse

Methods inherited from Base

delete, get, post, put

Class Method Details

.list[Hash]

List all available API versions

GET /api

Returns:

  • ([Hash])

    Currently available versions of the API.



17
18
19
# File 'lib/datacentred/request/versions.rb', line 17

def self.list
  get("/api")['versions']
end