Created
October 9, 2008 18:36
-
-
Save paul/15838 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POSTing this JSON document to /configurations: | |
{ | |
"name": "lacquered", | |
"notes": "...", | |
"parent_configuration_href": "http://config.ssbe.localhost/configurations/90" | |
} | |
parent_configuration_href references another configuration in this application. | |
Our URIs are opaque, so href is the only a client is allowed to reference it. | |
I'd like to de-munge this into a "parent_id" in params: | |
{"configuration"=>{"name"=>"lacquered", | |
"notes"=>"...", | |
"parent_id"=>90}, | |
"format"=>nil, "action"=>"create", "controller"=>"configurations"} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment