• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.
All TWiki scripts handle a contenttype parameter to set the content-type, e.g. contenttype=application/rss+xml. The rest script should do the same.

-- PTh

Not totally sure what you mean here; the rest script will not normally generate a response with a status code set to something like 200 (success) or 500 (failure). If a rest function is going to respond with something else - e.g. a block of XML - then that will be handled in the rest function itself. The bin/rest script should not try to second-guess how it is being used. Yes, I know about the endPoint parameter, but this is something we kept for compatibility; it's really not the way rest scripts should be used (it should be deprecated).

If you can give a real use-case for the content-type of the page response to be handled by bin/rest, then it would be a good idea to open a discussion on Codev and propose an enhancement. I don't see this as a code bug, though the documentation could do with improvement so I'm redirecting this to Documentation.

CC

ItemTemplate
Summary rest script does not grok contenttype
ReportedBy TWiki:Main.PeterThoeny
Codebase

SVN Range Mon, 27 Mar 2006 build 9563
AppliesTo Engine
Component Documentation
Priority Normal
CurrentState Confirmed
WaitingFor

Checkins

TargetRelease patch
ReleasedIn

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r4 - 2007-04-14 - CrawfordCurrie
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback