Class
ChefZero::RestBase
In:
lib/chef_zero/rest_base.rb
Parent:
Object
Methods
already_json_response
build_uri
build_uri
call
create_data
data_store
delete_data
delete_data_dir
error
exists_data?
exists_data_dir?
get_data
json_only
json_response
list_data
new
populate_defaults
set_data
Attributes
server
[R]
Public Class methods
build_uri
(base_uri, rest_path)
new
(server)
Public Instance methods
already_json_response
(response_code, json_text)
build_uri
(base_uri, rest_path)
To be called from inside rest endpoints
call
(request)
create_data
(request, rest_path, name, data, *options)
data_store
()
delete_data
(request, rest_path=nil)
delete_data_dir
(request, rest_path, *options)
error
(response_code, error)
exists_data?
(request, rest_path=nil)
exists_data_dir?
(request, rest_path=nil)
get_data
(request, rest_path=nil, *options)
json_only
()
json_response
(response_code, json)
list_data
(request, rest_path=nil)
populate_defaults
(request, response)
set_data
(request, rest_path, data, *options)
[Validate]