Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 391671

Summary: Render initial HTML only with WebClient
Product: [RT] RAP Reporter: Holger Staudacher <holger.staudacher>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P1 CC: jeick
Version: 2.0   
Target Milestone: 2.0 M3   
Hardware: PC   
OS: Mac OS X   
Whiteboard: protocol
Bug Depends on:    
Bug Blocks: 391672    

Description Holger Staudacher CLA 2012-10-11 10:10:14 EDT
Since RAP provides API (internal) to hook new clients it would be good if the initial GET request would render plain JSON instead of JSON packed within HTML. Rendering HTML should be the default for the WebClient, but not for other clients.
Comment 1 Holger Staudacher CLA 2012-10-11 10:32:32 EDT
*** Bug 391582 has been marked as a duplicate of this bug. ***
Comment 2 Ralf Sternberg CLA 2012-10-18 09:43:26 EDT
I'm for a simple solution: when the actual client is not the web client, we deliver the initial JSON message instead of HTML as response to the GET request.
Comment 3 Holger Staudacher CLA 2012-10-18 10:52:26 EDT
+1
Comment 4 Ivan Furnadjiev CLA 2012-11-01 06:01:24 EDT
Fixed with commit 3c752af9619892c48eac37ac3bc7b7ebc38e83d0.