the attached patch set adds the (still work-in-progress but already
working) RestPlugin base class and the RestRegionPlugin code. we are using
XML serialization.

currently working:

GET /admin/regions/                 -> returns UUID list of known regions
   GET /admin/regions/<UUID>    -> returns detailed region information

we'll be adding support for POST/DELETE/PUT and also for
/admin/regions/<UUID>/name etc.
This commit is contained in:
Sean Dague
2008-05-14 19:13:54 +00:00
parent 8fe9943293
commit 4a07038bbe
4 changed files with 138 additions and 15 deletions

View File

@@ -34,6 +34,11 @@ namespace OpenSim.Framework.Servers
{
private RestMethod m_restMethod;
public RestMethod Method
{
get { return m_restMethod; }
}
public override byte[] Handle(string path, Stream request)
{
Encoding encoding = Encoding.UTF8;