You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by "Bob Evans (JIRA)" <ji...@apache.org> on 2008/04/24 19:37:25 UTC

[jira] Created: (SHINDIG-210) Implement RESTful spec in Shindig

Implement RESTful spec in Shindig
---------------------------------

                 Key: SHINDIG-210
                 URL: https://issues.apache.org/jira/browse/SHINDIG-210
             Project: Shindig
          Issue Type: New Feature
          Components: Common Components (Java)
            Reporter: Bob Evans


This is a placeholder for a patch to add RESTful services to access the opensocial data services.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [jira] Commented: (SHINDIG-210) Implement RESTful spec in Shindig

Posted by Cassie <do...@apache.org>.
ah.. just kidding about the commit
fyi: svn commit access id down for maintenance so both this patch and the
build fixing patches will have to wait i suppose.

- cassie


On Tue, Apr 29, 2008 at 1:53 PM, Cassie Doll (JIRA) <ji...@apache.org> wrote:

>
>    [
> https://issues.apache.org/jira/browse/SHINDIG-210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12593007#action_12593007]
>
> Cassie Doll commented on SHINDIG-210:
> -------------------------------------
>
> So I am going to check this patch in almost as is. I have only made
> modifications to the service interfaces. The methods you added Vasu didn't
> really match up with the style nor meaning of the other added methods so I
> tried to reconcile things. The activity service is all fine, the methods
> have gadget tokens and return response items and the adapter is good.
>
> The people service on the other hand needs to be reconciled. The rest apis
> for /uid/@all/pid don't make sense with our code. The services and sample
> container don't have any concept of "contacts". Because the interfaces
> should remain more stable I took this stuff out until we can figure out the
> proper way to do things cleanly. For example, we should use the gadget token
> properly. That is how we do all of our permission checking and data
> restriction. With the gadget token it almost seems like
>
> people/john.doe/@all/jane.doe == people/jane.doe/@self
>
> john.doe doesn't really come into play at all unless he happens to be the
> viewer (or owner) in the current context.
> So... we'll want to resolve that conceptual problem through email before we
> change the service apis.
>
> Also - that RestGuiceModule has a lot of bindings which should probably
> just move into the SocialApiGuiceModule. You had a todo here so you may know
> that already.
>
> Thanks, and I look forward to more patches!
>
> - Cassie
>
> > Implement RESTful spec in Shindig
> > ---------------------------------
> >
> >                 Key: SHINDIG-210
> >                 URL: https://issues.apache.org/jira/browse/SHINDIG-210
> >             Project: Shindig
> >          Issue Type: New Feature
> >          Components: RESTful API (Java)
> >            Reporter: Bob Evans
> >         Attachments: restful.patch
> >
> >
> > This is a placeholder for a patch to add RESTful services to access the
> opensocial data services.
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>

Re: [jira] Commented: (SHINDIG-210) Implement RESTful spec in Shindig

Posted by Cassie <do...@google.com>.
yeah - that makes sense. don't worry, i'm not advocating any spec changes at
all. within shindig though I think we should keep them == until we get all
the basics down. no need to add more complexity before we are ready (and
without anybody needing it). especially because external websites are using
the existing interfaces.. we should try and keep the changes as minimal as
possible.

once we get the easy apis done maybe a simpler contacts and friends
interface for shindig will become clear too...

- Cassie


On Tue, Apr 29, 2008 at 8:14 PM, John Panzer <jp...@google.com> wrote:

> FYI -- regarding people/john.doe/@all/jane.doe vs. people/john.doe/@self:
>  I
> don't think the _protocol_ should assume these are always identical.  That
> assumes that social networks are never going to have private copies of
> contact information, and I don't think that's a good assumption to make.
> Even if Shindig just aliases people/john.doe/@all/jane.doe to
> people/john.doe/@self (which is fine), clients should still be able to
> specify which one they care about.
>
> Specific example:  I may have the rights to change name.unstructued to
> "Janey" in people/john.doe/@all/jane.doe if I am john.doe, but _not_ to
> change name.unstructured in people/jane.doe/@self (Jane hates the nickname
> "Janey").  I know that Shindig doesn't necessarily support this but it
> could
> be added behind the same interface.  Shindig itself can just disallow such
> games of course.
>
>
> On Tue, Apr 29, 2008 at 4:53 AM, Cassie Doll (JIRA) <ji...@apache.org>
> wrote:
>
> >
> >    [
> >
> https://issues.apache.org/jira/browse/SHINDIG-210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12593007#action_12593007
> ]
> >
> > Cassie Doll commented on SHINDIG-210:
> > -------------------------------------
> >
> > So I am going to check this patch in almost as is. I have only made
> > modifications to the service interfaces. The methods you added Vasu
> didn't
> > really match up with the style nor meaning of the other added methods so
> I
> > tried to reconcile things. The activity service is all fine, the methods
> > have gadget tokens and return response items and the adapter is good.
> >
> > The people service on the other hand needs to be reconciled. The rest
> apis
> > for /uid/@all/pid don't make sense with our code. The services and sample
> > container don't have any concept of "contacts". Because the interfaces
> > should remain more stable I took this stuff out until we can figure out
> the
> > proper way to do things cleanly. For example, we should use the gadget
> token
> > properly. That is how we do all of our permission checking and data
> > restriction. With the gadget token it almost seems like
> >
> > people/john.doe/@all/jane.doe == people/jane.doe/@self
> >
> > john.doe doesn't really come into play at all unless he happens to be the
> > viewer (or owner) in the current context.
> > So... we'll want to resolve that conceptual problem through email before
> > we change the service apis.
> >
> > Also - that RestGuiceModule has a lot of bindings which should probably
> > just move into the SocialApiGuiceModule. You had a todo here so you may
> know
> > that already.
> >
> > Thanks, and I look forward to more patches!
> >
> > - Cassie
> >
> > > Implement RESTful spec in Shindig
> > > ---------------------------------
> > >
> > >                 Key: SHINDIG-210
> > >                 URL: https://issues.apache.org/jira/browse/SHINDIG-210
> > >             Project: Shindig
> > >          Issue Type: New Feature
> > >          Components: RESTful API (Java)
> > >            Reporter: Bob Evans
> > >         Attachments: restful.patch
> > >
> > >
> > > This is a placeholder for a patch to add RESTful services to access the
> > opensocial data services.
> >
> > --
> > This message is automatically generated by JIRA.
> > -
> > You can reply to this email to add a comment to the issue online.
> >
> >
>

Re: [jira] Commented: (SHINDIG-210) Implement RESTful spec in Shindig

Posted by John Panzer <jp...@google.com>.
FYI -- regarding people/john.doe/@all/jane.doe vs. people/john.doe/@self:  I
don't think the _protocol_ should assume these are always identical.  That
assumes that social networks are never going to have private copies of
contact information, and I don't think that's a good assumption to make.
Even if Shindig just aliases people/john.doe/@all/jane.doe to
people/john.doe/@self (which is fine), clients should still be able to
specify which one they care about.

Specific example:  I may have the rights to change name.unstructued to
"Janey" in people/john.doe/@all/jane.doe if I am john.doe, but _not_ to
change name.unstructured in people/jane.doe/@self (Jane hates the nickname
"Janey").  I know that Shindig doesn't necessarily support this but it could
be added behind the same interface.  Shindig itself can just disallow such
games of course.


On Tue, Apr 29, 2008 at 4:53 AM, Cassie Doll (JIRA) <ji...@apache.org> wrote:

>
>    [
> https://issues.apache.org/jira/browse/SHINDIG-210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12593007#action_12593007]
>
> Cassie Doll commented on SHINDIG-210:
> -------------------------------------
>
> So I am going to check this patch in almost as is. I have only made
> modifications to the service interfaces. The methods you added Vasu didn't
> really match up with the style nor meaning of the other added methods so I
> tried to reconcile things. The activity service is all fine, the methods
> have gadget tokens and return response items and the adapter is good.
>
> The people service on the other hand needs to be reconciled. The rest apis
> for /uid/@all/pid don't make sense with our code. The services and sample
> container don't have any concept of "contacts". Because the interfaces
> should remain more stable I took this stuff out until we can figure out the
> proper way to do things cleanly. For example, we should use the gadget token
> properly. That is how we do all of our permission checking and data
> restriction. With the gadget token it almost seems like
>
> people/john.doe/@all/jane.doe == people/jane.doe/@self
>
> john.doe doesn't really come into play at all unless he happens to be the
> viewer (or owner) in the current context.
> So... we'll want to resolve that conceptual problem through email before
> we change the service apis.
>
> Also - that RestGuiceModule has a lot of bindings which should probably
> just move into the SocialApiGuiceModule. You had a todo here so you may know
> that already.
>
> Thanks, and I look forward to more patches!
>
> - Cassie
>
> > Implement RESTful spec in Shindig
> > ---------------------------------
> >
> >                 Key: SHINDIG-210
> >                 URL: https://issues.apache.org/jira/browse/SHINDIG-210
> >             Project: Shindig
> >          Issue Type: New Feature
> >          Components: RESTful API (Java)
> >            Reporter: Bob Evans
> >         Attachments: restful.patch
> >
> >
> > This is a placeholder for a patch to add RESTful services to access the
> opensocial data services.
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>

[jira] Resolved: (SHINDIG-210) Implement RESTful spec in Shindig

Posted by "Cassie Doll (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHINDIG-210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cassie Doll resolved SHINDIG-210.
---------------------------------

    Resolution: Fixed
      Assignee: Cassie Doll

Okay, so these patches are all in and the basic restful urls work. There's still plenty to go, just closing this bug for clarity. 

> Implement RESTful spec in Shindig
> ---------------------------------
>
>                 Key: SHINDIG-210
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-210
>             Project: Shindig
>          Issue Type: New Feature
>          Components: RESTful API (Java)
>            Reporter: Bob Evans
>            Assignee: Cassie Doll
>         Attachments: fixingRestfulGuice.patch, fixRestPatch, patch.rest.new, restful.patch
>
>
> This is a placeholder for a patch to add RESTful services to access the opensocial data services.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SHINDIG-210) Implement RESTful spec in Shindig

Posted by "vasu nori (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHINDIG-210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

vasu nori updated SHINDIG-210:
------------------------------

    Attachment: fixRestPatch

trying one more time.

tested the attached patch (fixRestPatch) for the following REST urls with sihndig bld version#652534
 people
   http://localhost:8080/social/rest/people/john.doe/@all
   http://localhost:8080/social/rest/people/john.doe/@all/jane.doe
   http://localhost:8080/social/rest/people/john.doe/@self
   http://localhost:8080/social/rest/people/john.doe/@all/john.doe
 activities
   http://localhost:8080/social/rest/activities/jane.doe/@self
   http://localhost:8080/social/rest/activities/jane.doe/@self/1

changes in this patch include
1. implementing @all for "people"
2. guice hacks from previous patch fixed
3. BeanXmlConverter not being passed around


> Implement RESTful spec in Shindig
> ---------------------------------
>
>                 Key: SHINDIG-210
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-210
>             Project: Shindig
>          Issue Type: New Feature
>          Components: RESTful API (Java)
>            Reporter: Bob Evans
>         Attachments: fixingRestfulGuice.patch, fixRestPatch, patch.rest.new, restful.patch
>
>
> This is a placeholder for a patch to add RESTful services to access the opensocial data services.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SHINDIG-210) Implement RESTful spec in Shindig

Posted by "vasu nori (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHINDIG-210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

vasu nori updated SHINDIG-210:
------------------------------

    Attachment:     (was: patch.xmls)

> Implement RESTful spec in Shindig
> ---------------------------------
>
>                 Key: SHINDIG-210
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-210
>             Project: Shindig
>          Issue Type: New Feature
>          Components: RESTful API (Java)
>            Reporter: Bob Evans
>         Attachments: fixingRestfulGuice.patch, fixRestPatch, patch.rest.new, restful.patch
>
>
> This is a placeholder for a patch to add RESTful services to access the opensocial data services.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SHINDIG-210) Implement RESTful spec in Shindig

Posted by "Cassie Doll (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHINDIG-210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cassie Doll updated SHINDIG-210:
--------------------------------

    Attachment: restful.patch

Patch created by Vasu Nori for an initial check in of some restful code. This is just a start of course...
(attaching for him with his notes below)

    * It doesn't break the build
          o from shindig/java dir, mvn clean install   <-- no errors. no unittest errors
          o from shindig/java/server dir, mvn jetty:run-war  <-- server starts ok.
          o this works --> http://localhost:8080/gadgets/files/samplecontainer/samplecontainer.html
          o the following REST api work too
                + http://localhost:8080/rest/people/john.doe/@all
                   http://localhost:8080/rest/people/john.doe/@all/jane.doe
                   http://localhost:8080/rest/people/john.doe/@self
                   http://localhost:8080/rest/activities/jane.doe/@self
                   http://localhost:8080/rest/activities/jane.doe/@self/1

                  # the following are 404 - not found conditions, because there is no data
                   http://localhost:8080/rest/activities/jane.doe/@self/2
                   http://localhost:8080/rest/people/john.doe/@all/john.doe

    * no unittests in the patch
    * there are some TODOs - including a more correct way to Guice it.


> Implement RESTful spec in Shindig
> ---------------------------------
>
>                 Key: SHINDIG-210
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-210
>             Project: Shindig
>          Issue Type: New Feature
>          Components: RESTful API (Java)
>            Reporter: Bob Evans
>         Attachments: restful.patch
>
>
> This is a placeholder for a patch to add RESTful services to access the opensocial data services.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SHINDIG-210) Implement RESTful spec in Shindig

Posted by "vasu nori (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHINDIG-210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

vasu nori updated SHINDIG-210:
------------------------------

    Attachment: patch.rest.new

attaching patch file to make REST do Guice correctly. 

The following files are different between this patch and the patch file already attached previously to this ticket

    java/social-api/src/main/java/org/apache/shindig/social/SocialApiProvider.java
    java/social-api/src/main/java/org/apache/shindig/social/opensocial/util/BeanXmlConverter.java
    java/social-api/src/main/java/org/apache/shindig/social/abdera/RestGuiceModule.java
    java/social-api/src/main/java/org/apache/shindig/social/abdera/RestServerCollectionAdapter.java
    java/social-api/src/main/java/org/apache/shindig/social/abdera/PeopleServiceAdapter.java
    java/social-api/src/main/java/org/apache/shindig/social/abdera/ActivitiesServiceAdapter.java
    java/social-api/src/main/webapp/WEB-INF/web.xml
    java/server/src/main/webapp/WEB-INF/web.xml



> Implement RESTful spec in Shindig
> ---------------------------------
>
>                 Key: SHINDIG-210
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-210
>             Project: Shindig
>          Issue Type: New Feature
>          Components: RESTful API (Java)
>            Reporter: Bob Evans
>         Attachments: patch.rest.new, restful.patch
>
>
> This is a placeholder for a patch to add RESTful services to access the opensocial data services.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SHINDIG-210) Implement RESTful spec in Shindig

Posted by "vasu nori (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHINDIG-210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12593387#action_12593387 ] 

vasu nori commented on SHINDIG-210:
-----------------------------------

>I also combined the RestGuiceModule into the SocialApiGuiceModule as they should be one and the same.

agreed.

>Just one comment though - why is the beanXmlConverter passed around through all of those methods?
>Can't it just be moved into the abstract base class as a field? I think that would simplify things a lot.

agreed. stupid me, I saved that cleanup once I got the guice working.. and then I forgot.

>The reason I haven't checked this in though is that I just realized that the urls you thought were working
>for the restful server aren't working in svn head. No exceptions are being thrown..
>I keep just getting Not Found xml responses from abdera.
>Does abdera swallow exceptions? Is there a good way to debug this, or better yet,
>do you know what the problem is?

abdera swallows reason for "not found" exception, if it occurs inside abdera
but it propagates other exceptions back to the user.

I usually debug in 2 ways. I have logging.properties file like the following and place it in classpath.
     handlers = java.util.logging.ConsoleHandler, java.util.logging.FileHandler
     .level = FINEST
     java.util.logging.ConsoleHandler.level = FINEST
     java.util.logging.FileHandler.level = ALL
     java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
    com.google.level = INFO
    org.apache.abdera.level=FINEST
    org.google.inject.level=FINEST

If that doesn't give me info, I then use eclipse to step through code. thats more painful.

hey, maybe you can send me the patch you are trying to checkin (with your changes) and I can test it out.
usually, problem could be (1) web.xml doesn't have abdera param for the REST servlet
(2) or url is wrong - so rest servlet is not receiving the request 

> Implement RESTful spec in Shindig
> ---------------------------------
>
>                 Key: SHINDIG-210
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-210
>             Project: Shindig
>          Issue Type: New Feature
>          Components: RESTful API (Java)
>            Reporter: Bob Evans
>         Attachments: fixingRestfulGuice.patch, patch.rest.new, restful.patch
>
>
> This is a placeholder for a patch to add RESTful services to access the opensocial data services.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SHINDIG-210) Implement RESTful spec in Shindig

Posted by "vasu nori (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHINDIG-210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

vasu nori updated SHINDIG-210:
------------------------------

    Attachment: patch.xmls

web.xml files need to be patched to eliminate 404 errors.
attached patch file by *manually* deleting the other stuff from the 2nd patch file I attached.


> Implement RESTful spec in Shindig
> ---------------------------------
>
>                 Key: SHINDIG-210
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-210
>             Project: Shindig
>          Issue Type: New Feature
>          Components: RESTful API (Java)
>            Reporter: Bob Evans
>         Attachments: fixingRestfulGuice.patch, patch.rest.new, patch.xmls, restful.patch
>
>
> This is a placeholder for a patch to add RESTful services to access the opensocial data services.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SHINDIG-210) Implement RESTful spec in Shindig

Posted by "Kevin Brown (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHINDIG-210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12592424#action_12592424 ] 

Kevin Brown commented on SHINDIG-210:
-------------------------------------

If it isn't breaking the build, add the tests and check it in. It's easier to look at stuff after the check in anyway.

Why aren't there any tests? :)

> Implement RESTful spec in Shindig
> ---------------------------------
>
>                 Key: SHINDIG-210
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-210
>             Project: Shindig
>          Issue Type: New Feature
>          Components: RESTful API (Java)
>            Reporter: Bob Evans
>         Attachments: restful.patch
>
>
> This is a placeholder for a patch to add RESTful services to access the opensocial data services.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SHINDIG-210) Implement RESTful spec in Shindig

Posted by "Cassie Doll (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHINDIG-210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12593007#action_12593007 ] 

Cassie Doll commented on SHINDIG-210:
-------------------------------------

So I am going to check this patch in almost as is. I have only made modifications to the service interfaces. The methods you added Vasu didn't really match up with the style nor meaning of the other added methods so I tried to reconcile things. The activity service is all fine, the methods have gadget tokens and return response items and the adapter is good. 

The people service on the other hand needs to be reconciled. The rest apis for /uid/@all/pid don't make sense with our code. The services and sample container don't have any concept of "contacts". Because the interfaces should remain more stable I took this stuff out until we can figure out the proper way to do things cleanly. For example, we should use the gadget token properly. That is how we do all of our permission checking and data restriction. With the gadget token it almost seems like 

people/john.doe/@all/jane.doe == people/jane.doe/@self

john.doe doesn't really come into play at all unless he happens to be the viewer (or owner) in the current context. 
So... we'll want to resolve that conceptual problem through email before we change the service apis. 

Also - that RestGuiceModule has a lot of bindings which should probably just move into the SocialApiGuiceModule. You had a todo here so you may know that already. 

Thanks, and I look forward to more patches!

- Cassie

> Implement RESTful spec in Shindig
> ---------------------------------
>
>                 Key: SHINDIG-210
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-210
>             Project: Shindig
>          Issue Type: New Feature
>          Components: RESTful API (Java)
>            Reporter: Bob Evans
>         Attachments: restful.patch
>
>
> This is a placeholder for a patch to add RESTful services to access the opensocial data services.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SHINDIG-210) Implement RESTful spec in Shindig

Posted by "Kevin Brown (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHINDIG-210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Brown updated SHINDIG-210:
--------------------------------

    Component/s:     (was: Common Components (Java))
                 RESTful API (Java)

> Implement RESTful spec in Shindig
> ---------------------------------
>
>                 Key: SHINDIG-210
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-210
>             Project: Shindig
>          Issue Type: New Feature
>          Components: RESTful API (Java)
>            Reporter: Bob Evans
>
> This is a placeholder for a patch to add RESTful services to access the opensocial data services.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SHINDIG-210) Implement RESTful spec in Shindig

Posted by "Cassie Doll (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHINDIG-210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cassie Doll updated SHINDIG-210:
--------------------------------

    Attachment: fixingRestfulGuice.patch

Vasu - I have updated your patch to reconcile it with the current svn head. I also combined the RestGuiceModule into the SocialApiGuiceModule as they should be one and the same. 

Just one comment though - why is the beanXmlConverter passed around through all of those methods? Can't it just be moved into the abstract base class as a field? I think that would simplify things a lot. 

The reason I haven't checked this in though is that I just realized that the urls you thought were working for the restful server aren't working in svn head. No exceptions are being thrown.. I keep just getting Not Found xml responses from abdera. 

Does abdera swallow exceptions? Is there a good way to debug this, or better yet, do you know what the problem is?

Thanks. 

- Cassie

> Implement RESTful spec in Shindig
> ---------------------------------
>
>                 Key: SHINDIG-210
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-210
>             Project: Shindig
>          Issue Type: New Feature
>          Components: RESTful API (Java)
>            Reporter: Bob Evans
>         Attachments: fixingRestfulGuice.patch, patch.rest.new, restful.patch
>
>
> This is a placeholder for a patch to add RESTful services to access the opensocial data services.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.