Support friendly aliases for link's rel attributes filled with namespaced URIs.
-
Guilherme Silveira
Hello Marco,
Great idea, and we still need to support the URI based values, support could be:
Server side:
link "http://mySystemOfSystems.com/rels/publish", "http://related_resource.com"
link "hell:burn", "http://hell.com"
link "hell", "http://hell.com"Client side:
resource.links("http://mySystemOfSystems.com/rels/publish").post
resource.links("hell:burn").post
resource.links.hell.burn.post
resource.links.self.post
resource.links("self").postRegards
-
Marco Antonio Gonzalez Junior
For instance:
collection.link "http://kayaman.baurets.net/api/rels/register/", "http://kayaman.baurets.net:3000/items"
I have:
ruby-1.8.7-p299 > res = Restfulie.at("http://localhost:3000/items").get! ruby-1.8.7-p299 > res.items.links.baurets => #<Restfulie::Common::Converter::Xml::Link:0x7051c0 @options={"href"=>"nohref", "rel"=>:register}> ruby-1.8.7-p299 > res.items.links.baurets.register => #<Restfulie::Common::Converter::Xml::Link:0x6fd538 @options={"href"=>"http://kayaman.baurets.net:3000/items", "rel"=>"register", "type"=>"application/xml"}>There should be a way of blocking the 'baurets' method making http calls.
I still have to work on other syntax variations.
Thank you and regards,
marco
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.