Bug 700280

Summary: Web service to return author deets from Topic ID
Product: [Community] PressGang CCMS Reporter: Joshua Wulf <jwulf>
Component: Web-UIAssignee: Matthew Casperson <mcaspers>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.xCC: cbredesen, lcarlon, topic-tool-list
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-30 19:38:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 700279    

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