Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
CIMI: aligned to MachineCreate example in spec the root element
Browse files Browse the repository at this point in the history
names used in request bodies in client UI
  • Loading branch information
Dies Koper committed Jul 16, 2013
1 parent 1177890 commit 08d8de9
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion clients/cimi/lib/entities/address.rb
Expand Up @@ -33,7 +33,7 @@ class CIMI::Frontend::Address < CIMI::Frontend::Entity

post '/cimi/addresses' do
address_xml = Nokogiri::XML::Builder.new do |xml|
xml.Address(:xmlns => CIMI::Frontend::CMWG_NAMESPACE) {
xml.AddressCreate(:xmlns => CIMI::Frontend::CMWG_NAMESPACE) {
xml.name params[:address][:name]
xml.description params[:address][:description]
xml.addressTemplate( :href => params[:address][:address_template] )
Expand Down
2 changes: 1 addition & 1 deletion clients/cimi/lib/entities/credential.rb
Expand Up @@ -43,7 +43,7 @@ class CIMI::Frontend::Credential < CIMI::Frontend::Entity

post '/cimi/credential' do
credential_xml = Nokogiri::XML::Builder.new do |xml|
xml.Credential(:xmlns => CIMI::Frontend::CMWG_NAMESPACE) {
xml.CredentialCreate(:xmlns => CIMI::Frontend::CMWG_NAMESPACE) {
xml.name params[:credential][:name]
xml.description params[:credential][:description]
xml.username params[:credential][:username]
Expand Down
2 changes: 1 addition & 1 deletion clients/cimi/lib/entities/machine.rb
Expand Up @@ -98,7 +98,7 @@ class CIMI::Frontend::Machine < CIMI::Frontend::Entity

post '/cimi/machines' do
machine_xml = Nokogiri::XML::Builder.new do |xml|
xml.Machine(:xmlns => CIMI::Frontend::CMWG_NAMESPACE) {
xml.MachineCreate(:xmlns => CIMI::Frontend::CMWG_NAMESPACE) {
xml.name params[:machine][:name]
xml.description params[:machine][:description]
xml.machineTemplate {
Expand Down
2 changes: 1 addition & 1 deletion clients/cimi/lib/entities/machine_template.rb
Expand Up @@ -33,7 +33,7 @@ class CIMI::Frontend::MachineTemplate < CIMI::Frontend::Entity

post '/cimi/machine_templates' do
machine_template_xml = Nokogiri::XML::Builder.new do |xml|
xml.MachineTemplate(:xmlns => CIMI::Frontend::CMWG_NAMESPACE) {
xml.MachineTemplateCreate(:xmlns => CIMI::Frontend::CMWG_NAMESPACE) {
xml.name params[:machine_template][:name]
xml.description params[:machine_template][:description]
xml.machineConfig( :href => params[:machine_template][:machine_config] )
Expand Down
2 changes: 1 addition & 1 deletion clients/cimi/lib/entities/network.rb
Expand Up @@ -43,7 +43,7 @@ class CIMI::Frontend::Network < CIMI::Frontend::Entity

post '/cimi/networks' do
network_xml = Nokogiri::XML::Builder.new do |xml|
xml.Network(:xmlns => CIMI::Frontend::CMWG_NAMESPACE) {
xml.NetworkCreate(:xmlns => CIMI::Frontend::CMWG_NAMESPACE) {
xml.name params[:network][:name]
xml.description params[:network][:description]
xml.networkTemplate {
Expand Down
2 changes: 1 addition & 1 deletion clients/cimi/lib/entities/system.rb
Expand Up @@ -168,7 +168,7 @@ def systems_resources_index(res)

post '/cimi/systems' do
system_xml = Nokogiri::XML::Builder.new do |xml|
xml.System(:xmlns => CIMI::Frontend::CMWG_NAMESPACE) {
xml.SystemCreate(:xmlns => CIMI::Frontend::CMWG_NAMESPACE) {
xml.name params[:system][:name]
xml.systemTemplate( :href => params[:system][:system_template])
}
Expand Down

0 comments on commit 08d8de9

Please sign in to comment.