Note: this is about to be rewritten as a library that will be exposed as command line tool first rather than a service that the tool talks to. It will talk to MindTouch over the Import/Export protocol.
The service import tool allows service developers to deliver a service and its assets in a simple package, including instructions gathering configuration data from the installer. The service package is a zip file consisting of the a modified import manifest and the assets referred to in the manifest. The package can include the following:
The package import tool will process the manifest and use embedded prompt elements to determine what additional information is required to transform the manifest into one valid for import. Prompt elements are used to mark up existing elements to modify their values and attributes.
<document xmlns:p="http://mindtouch.com/ns/prompt">
<p:prompt p:required="true)"
p:name="MyElement"
p:description="Just some element"
p:default="some value"/>
<p:prompt p:required="false"
p:name="MyAttribute"
p:description="An optional attribute"
p:default="baz"
p:target="@attr"/>
<element attr="foo">
element value
</alert>
</document>
The above document would generate prompts for both the document/element value and document/element/@attr similar to this:
MyElement (Just some element): some value
MyAttribute (An optional attribute, optional): baz
If the defaults are accepted as is, the processing would result in this document:
<document>
<element attr="baz>some value</element>
</document>
Prompt elements always preceed the element they affect and have the following attributes:
mindtouch.deki.serviceutil.exe /import /uri http://foo.com/@api/deki/site/services/import /apikey 123456 package.zip
The commandline tool can be used in interactive or scripted form. It uses the service features to upload the package and interacts with the configuration request. If provided a configuration file, the configuration request is automatically filled out, returning an error specifying missing data if insufficient. Alternatively, without a configuration file, the tool runs in interactive mode, prompting the user for the required information.
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |
Copyright © 2011 MindTouch, Inc. Powered by