...
The content must be POSTed as a JSON object in the following format (see also the "get" API call.
Code Block | ||
---|---|---|
| ||
{ "_id": string, // Optional - auto-generated if not specified. If the "_id" is specified then updates the module as described below. "url": string, // Will normally either be a public URL or the location of a shared object in Infinit.e. "title": string, // The widget title displayed in the widget browser and on the widget window title bar "description": string, // A description of the widget, displayed in the widget browser "version": string, // An arbitrary string used for external versioning "imageurl": string, // The URL of an image used to represent the widget in the GUI framework (again normally either a public URL or share) "searchterms": [ string // A list of strings that are used in the "modules/search" API call ] } |
...
Note finally that the following fields are added to the uploaded/updated JSON object (and are retrieved via the "module/get" API call):
Code Block | ||
---|---|---|
| ||
{ //... "_id": string, // If not specified "created": string, // First time inserted, the Unix time in ms "modified": string, // Each time created or modified, the Unix time in ms "author": string, // The (unique) email address of the uploader "approved": boolean, // Currently hardwired to true //... } |
...