wiki:MapGuideRfc28

MapGuide RFC 28 - Web Tier APIs for Fusion support

This page contains an change request (RFC) for the MapGuide Open Source project. More MapGuide RFCs can be found on the RFCs page.

Status

RFC Template Version(1.0)
Submission DateAug 20, 2007
Last ModifiedChris Claydon Timestamp?
AuthorChris Claydon
RFC Statusadopted
Implementation Statusunder development
Proposed Milestone2.0
Assigned PSC guide(s)(when determined)
Voting HistorySept 18/2007
+1Tom, Andy, Haris, Bob, Bruce, Jason, Paul
+0
-0
-1

Overview

This RFC contains a proposal for new web tier APIs to facilitate the creation of the resources required to build a web application based on the new "Fusion" framework.

Motivation

The new application definition framework (aka Fusion) for MapGuide Open Source web applications is based upon the following components:

1) A set of HTML/CSS templates defining the application's layout and appearance.

2) A set of "widgets" (e.g. Pan, Zoom, Search etc.) that provide functionality for the application.

3) "Application Definition" resources, stored in the MG repository, that provide configuration information for the referenced widgets, and associate them with the panels in an HTML template.

In order to allow authoring applications to build Application Definitions, it must be possible to enumerate the available templates and widgets, and to retrieve information about them.

Proposed Solution

The new APIs would be implemented entirely in the web tier. No modifications are required to the MGOS Server, since the Fusion framework will be part of the web tier deployment.

The APIs would be implemented as HTTP requests, and would use the following operations:

ENUMERATEAPPLICATIONTEMPLATES

ENUMERATEAPPLICATIONWIDGETS

ENUMERATEAPPLICATIONCONTAINERS

Details of each of the new APIs are as follows:

ENUMERATEAPPLICATIONTEMPLATES

Request parameters:

FORMATtext/xml (default) or application/json

Response:

The response will be in XML or JSON format (depending on the FORMAT parameter) and will return information including the Name, Location (URL), Description and Preview Image URL for each of the available templates. See the attached schema for details.

ENUMERATEAPPLICATIONWIDGETS

Request parameters:

FORMATtext/xml (default) or application/json

Response:

The response will be in XML or JSON format (depending on the FORMAT parameter) and will return information including the Name, Description, Default Image URL, Default Tooltip, and Type for each of the available widgets. See the attached schema for details.

ENUMERATEAPPLICATIONCONTAINERS

Request parameters:

FORMATtext/xml (default) or application/json

Response:

The response will be in XML or JSON format (depending on the FORMAT parameter) and will return information including the Name, Description, Preview Image URL, and Type for each of the available container types. See the attached schema for details. Examples of containers are: Toolbar and ContextMenu.

The schema for the response formats is located here:

http://svn.osgeo.org/mapguide/trunk/MgDev/Common/Schema/ApplicationDefinitionInfo-1.0.0.xsd

Implications

The implementation is entierly in the web tier. All APIs are new and do not affect existing APIs or functionality.

Test Plan

Testing should be carried out by exercising the HTTP APIs in unit tests and via authoring applications.

Funding/Resources?

Funding and resources to be supplied by Autodesk.

Last modified 10 years ago Last modified on Nov 14, 2007 8:51:42 AM