Project:API dump

Templates for API documentation use the API dump from Module:APIDump to retrieve information about the API. This module should always be loaded with  to reduce resource usage and prevent memory errors.

Convenience functions for accessing information from the API dump are available, and should be added, in Module:API.

Format
The API dump is a Lua table that matches the format of the API dump published by Roblox. Execute

= =require('Dev:Inspect').inspect(p.data)

in the debug console when editing Module:APIDump to view what information is available in the API dump and its format.

Updating
To update the API dump, get the latest version hash from

http://setup.roblox.com/versionQTStudio

then replace by the hash in

http://setup.roblox.com/version- -API-Dump.json

to download the latest API dump. The JSON file needs to be converted to a Lua table before updating. This could be done with lua-json or regular expression replacements.