Quantcast How are API's discovered? - WoWInterface
Thread Tools Display Modes
09-25-19, 03:44 PM   #1
fakesaint41
A Murloc Raider
Join Date: Mar 2019
Posts: 7
How are API's discovered?

I'm curious how the wiki sites generate their api list. Here's what I've found so far:
  • Tools like this one discover functions that are used by the exported interface code.
  • Using the in game /api command. Confused why some api's like AbandonQuest aren't discoverable via this method

Is that pretty much how its done or are there other clever ways of discovering functions?
  Reply With Quote
09-25-19, 07:16 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,668
The /api command is relatively new. Anything in that reference is specifically written to show in its own Blizzard addon. (The same as someone creating a wiki page.) Occasionally, new things are added. It will most likely never contain every single function.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
09-25-19, 07:44 PM   #3
Kanegasi
A Scalebane Royal Guard
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 411
The majority of the API can be discovered by exporting the UI itself and reading what Blizzard does with it.

As for that tool you linked, it's a fancy way of organizing the data available from simply running a loop on the ingame _G table. All global objects (functions, tables, strings, numbers, and booleans) of a Lua environment are in there.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » How are API's discovered?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off