MindTouch Portal Sites Service
Copyright (c) 2006, 2007 MindTouch, Inc. (more) (blueprint)
Configuration
- db-source = string : Database server to connecto to.
- test = {global}? : Test mode.
- google-key = string : API key for Google services.
- db-user = string : Username for authentication.
- stat_interval = double? : Seconds between collecting statistics from sites (default: 10 seconds).
- db-name = string : Database to connect to.
- db-password = string : Password for authentication.
- uri.self = uri : Uri for current service (provided by Host).
- uri.log = uri? : Uri for logging service.
- apikey = string? : Key to access protected features of the service.
- autosave = double? : Time interval in seconds for automatic state save (only applies to services with state).
Features
DELETE: (private)
Stop service (more)
GET: (internal)
Returns a list of sites. (more)
- status = {all, active, deactivated, reserved, registering}? : Only return sites with the given status; default is ‘all’
- after = int? : Only return sites with a SiteID greater than this argument; default is 0
- offset = int? : Number of records to skip; default is 0
- limit = int? : Maximum number of rows to return from the result set; default is 100
- find = string? : Only return sites containing the argument in their name
POST: (internal)
(more)
Retrieve service description (more)
Retrieve service blueprint (more)
DELETE:@config (private)
Deinitialize service (more)
Retrieve service configuration (more)
PUT:@config (private)
Initialize service (more)
POST:@grants (internal)
Adds a grant to this service for accessing another service. (more)
GET:{siteid} (internal)
Returns information about a specific site. (more)
- siteid = string? : id of the site or hostname prefixed by ‘=’
PUT:{siteid}/paystatus (internal)
Set the pay status of a site. Plain text values: ‘basic’, ‘pro’ (more)
- siteid = string? : id of the site or hostname prefixed by ‘=’
Retrieve sites with most content. (more)
- limit = int? : Number of sites to return
Retrieve a list of all featured sites. (more)
Retrieve most viewed sites. (more)
- limit = int? : Number of sites to return
Retrieve a list of newly activated sites. (more)
- limit = int? : Number of sites to return
Retrieve overall site statistics. (more)
GET:stats/{siteid} (public)
Retrieve site statistics. (more)