The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Backpack Accepts YAML Payload

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Red Handed

Posts: 1158
Nickname: redhanded
Registered: Dec, 2004

Red Handed is a Ruby-focused group blog.
Backpack Accepts YAML Payload Posted: May 17, 2005 2:29 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Red Handed.
Original Post: Backpack Accepts YAML Payload
Feed Title: RedHanded
Feed URL: http://redhanded.hobix.com/index.xml
Feed Description: sneaking Ruby through the system
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Red Handed
Latest Posts From RedHanded

Advertisement

The Backpack Weblog just posted a complete Backpack API for Ruby [mirror] which is terrifically straightforward. The meat of the code is the first twenty lines, which handles serialization to YAML, posting to the server and deserialization from XML. Ha! YAML AND XML! (Who signed the peace accord without me?!)

I’m curious about this X-POST_DATA_FORMAT header that’s being sent. What about Content-Type: application/yaml? It’s also interesting that YAML isn’t readily documented as a payload on the API page. I hope I can rectify this situation once my Python and Perl assistants pass their dumping Syck extensions back up to me.

All actions are done through POST, presumably to allow authentication for each. I’d really like to hear from David or Jamis why they didn’t use authentication headers. And, you know, how this all came together.

Note: You’ll probably want to use my corrected mirrored version above. The pasted script forms urls like username.honey.i, which is an awesome domain, but too awesome methinks.

Read: Backpack Accepts YAML Payload

Topic: DevX Article on Ruby Network Programming Previous Topic   Next Topic Topic: The Art of Computational Science, with Ruby

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use