The WorldGen software provides a RESTful interface to most of the information stored in a universe's database. Basically, it allows the database to be queried using basic HTTP requests. As with all REST interfaces, the type of request is determined by the HTTP method used, i.e.:
When performing a GET of information, the format of the information returned will generally default to XML. This format can be controlled by appending a suffix to the URL, i.e.:
For example, /planet/567.html will get a prettily formated HTML page describing a world, whereas /planet/567.jpg will return a map of the world.
As with typical REST methodology, query strings are not used to determine what information to fetch, but may be used to modify how the data is formated. So, the URL format is normally <type of data>/<id>.<format>
To see it in action, have a look at http://dev.glendale.org.uk/mortals/sector/1.html
There are two main databases - Traveller and Mortals, which can be chosen by using either traveller or mortals in the URL. The former is more stable (I'm using it for a campaign, so the underlaying data can't change too much), but Mortals is more likely to have the latest features.
Some example APIs:
solomani or planet instead of vilani. The latter will get a random star system name. The number parameter can be set to get more than one name at a time.0,-1.html will get Lishun Sector.