Roblox API Dictionary (aka RAPID)
[ Asset Store ] [ Github Gist ]
What is RAPID?
RAPID is a modulescript (dictionary) containing all of the information listed in @Maximum_ADHD’s json api dump. You can use it by installing the script, or by requiring it remotely by its asset store id (95402612097481). I probably will not update this dictionary unless it is requested or Roblox makes some drastic changes.
Why is it useful?
I am planning to use it to expand the capabilities of my GitSync plugin. Otherwise, I’m not really sure, but I assume it has many applications. I am not sure if something like this already exists, since MaximumADHD’s json already exists.
Example Usage
-- A program that creates a table of the properties of each class
local RAPID = require(95402612097481)
local function getProperties()
local properties = {}
for className, classData in pairs(RAPID) do
if classData.Members then
for _, member in pairs(classData.Members) do
if member.MemberType == "Property" then
local property = {
Name = member.Name,
ValueType = member.ValueType.Name,
ReadOnly = member.Security.Read == "None",
Tags = member.Tags or {},
}
if member.Capabilities then property.Capabilities = member.Capabilities.Read or {} end
if not properties[className] then properties[className] = {} end
table.insert(properties[className], property)
end
end
end
end
return properties
end
local properties = getProperties()
-- The table of classes and their corresponding properties is then accessed in order to retrieve the properties of the "AnimationTrack" class
for _, prop in ipairs(properties["AnimationTrack"] or {}) do
print("Property Name:", prop.Name)
print("ValueType:", prop.ValueType)
print("Tags:", table.concat(prop.Tags, ", "))
print("Capabilities:", table.concat(prop.Capabilities, ", "))
print("-----+-----+-----+-----+-----")
end
How did you do it?
I used Google Apps Script and a little ChatGPT, because I don’t know gscript. I used Google Apps Script instead of some website to convert the json, because I like Google Apps Script. It’s pretty cool.