Research Log of Web Science Students

Computer Science is not simply programming

HardWire REST Protocol v1.

leave a comment »

Today I implemented 4 web services (more details in the wiki).

Here’s the action shot of the Project List Resource

The generated XML response

<pre id="line1"><?xml version="1.0"?>
<?xml-stylesheet type="text/css"?>
<hardwire:project-list xmlns:hardwire="http://hard-wire.appspot.com/projectlist">
<hardwire:tag>Add</hardwire:tag>
<hardwire:project-ref href="<a href="view-source:http://hard-wire.appspot.com/res/project?id=c7f3872c-a0c9-4af8-893a-7373a4cf3c9e">http://hard-wire.appspot.com/res/project?id=c7f3872c-a0c9-4af8-893a-7373a4cf3c9e</a>">Project Title</hardwire:project-ref>
</hardwire:project-list>

This is for the Module Resource


<pre id="line1"><?xml version="1.0"?>
<?xml-stylesheet type="text/css"?>
<hardwire:module xmlns:hardwire="http://hard-wire.appspot.com/res/module">
<hardwire:owner>test@example.com</hardwire:owner>
<hardwire:title>Untitled Module 1</hardwire:title>
<hardwire:objective>Set learning objectives 1</hardwire:objective>
<hardwire:tags>Add,Tags</hardwire:tags>
</hardwire:module>
</pre>

The Project Resource and Module List resource are just both analogous to the Module Resource and the Module List Resource respectively.

Advertisements

Written by Jose Asuncion

December 29, 2009 at 4:32 pm

Posted in Hardwire

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: