I like to bootstrap and execute the particular cookbooks through API request using chef library

hi,

i need to to make authenticated API request is to use the chef libraries like
below
require 'rubygems’
require 'chef/config’
require 'chef/log’
require ‘chef/rest’

chef_server_url=“https://chefserver.com"
client_name = “clientname"
signing_key_filename=”/path/to/pem/for/clientname”

rest = Chef::REST.new(chef_server_url, client_name, signing_key_filename)
puts rest.get_rest("/clients")

like wise i like to bootstrap and execute the particular cookbooks through API
request using chef library, it is possible means please send solution as soon
as possible.

Thanks and Regards,
Ganesan.A