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

Bug 371237

Summary: Send only JSON in first response if client accepts this
Product: [RT] RAP Reporter: Jordi Boehme Lopez <jboehme>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 1.5   
Target Milestone: 2.0 M3   
Hardware: All   
OS: All   
Whiteboard:

Description Jordi Boehme Lopez CLA 2012-02-10 09:08:30 EST
Currently on the first request, a html page with html, javascript and embedded json is sent to the client.
Mobile clients (or any other JSON only clients) could send "Accept: application/json" in the request header to let the server know, that only json responses are needed (no browser-specific bloat ;) )
Comment 1 Ralf Sternberg CLA 2012-02-10 10:02:11 EST
I think about a configurable bootstrapping for clients, but as a preliminary solution, this approach may be acceptable. If a certain HTTP is included in the initial request, only JSON would be returned instead of the initial HTML page.
Comment 2 Ivan Furnadjiev CLA 2013-01-14 05:06:05 EST
With the introduction of client API this issue has been resolved.