deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [4/6] git commit: CIMI: Return Location headers after Machine create
Date Mon, 12 Nov 2012 19:44:02 GMT
CIMI: Return Location headers after Machine create


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/f046e4cb
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/f046e4cb
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/f046e4cb

Branch: refs/heads/master
Commit: f046e4cb483673f6c4d56a3e302acb50a588bf5a
Parents: 85e8b1e
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Mon Nov 12 12:28:07 2012 +0100
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Mon Nov 12 20:22:10 2012 +0100

----------------------------------------------------------------------
 server/lib/cimi/collections/machines.rb |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/f046e4cb/server/lib/cimi/collections/machines.rb
----------------------------------------------------------------------
diff --git a/server/lib/cimi/collections/machines.rb b/server/lib/cimi/collections/machines.rb
index 9f904c1..6fdfbc2 100644
--- a/server/lib/cimi/collections/machines.rb
+++ b/server/lib/cimi/collections/machines.rb
@@ -52,6 +52,7 @@ module CIMI::Collections
             new_machine = Machine.create_from_xml(request.body.read, self)
           end
           status 201 # Created
+          headers 'Location' => new_machine.id
           respond_to do |format|
             format.json { new_machine.to_json }
             format.xml { new_machine.to_xml }


Mime
View raw message