Bug 700280 - Web service to return author deets from Topic ID
Summary: Web service to return author deets from Topic ID
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: PressGang CCMS
Classification: Community
Component: Web-UI
Version: 1.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Matthew Casperson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 700279
TreeView+ depends on / blocked
 
Reported: 2011-04-28 01:41 UTC by Joshua Wulf
Modified: 2014-10-19 22:58 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-30 19:38:53 UTC


Attachments (Terms of Use)

Description Joshua Wulf 2011-04-28 01:41:01 UTC
We need a web service that will return me two lines with the author details of a Topic.

So when I do http GET on a URL like: http://jboss-eap.bne.redhat.com:8080/TopicIndex/services/gettopicinfo?TopicID=44

It returns me the author name and the author detail (where we will supply the author email).

I created a webservice previously using the RESTEasy tutorial in the JBDS docs and it was easy. The only thing was that the wizard put the RESTEasy src files in src/hot and I had to copy them to src/main to make it work. I filed a bug and they fixed it in the next version, but JBDS 4 GA still has the bug.

Comment 1 Joshua Wulf 2011-04-30 19:38:53 UTC
Done.

Source code: https://svn.devel.redhat.com/repos/ecs/Middleware/SkyNetWebservice

Web service now running at http://jboss-eap.bne.redhat.com:8080/SkyNetWebservice

To use, pass a Topic.TopicSVNURL, with "/" characters replaced with "%20", to http://jboss-eap.bne.redhat.com:8080/SkyNetWebservice/Information/authorfromtopicurl/

For example:

http://jboss-eap.bne.redhat.com:8080/SkyNetWebservice/Information/authorfromtopicurl/http:%20%20topicrepo.englab.bne.redhat.com%20TopicRepository%20Tasks%20Middleware%20AS%20Start_Standalone_AS.xml

The response is plain text:

author.name <author.email>

If no matching Topic or Author ID is found, the service returns:

 ERR:Not_found


Note You need to log in before you can comment on or make changes to this bug.