Undocumented API

Is there anywhere I can find a full list of the API? I would like to go through and test the full API to look for anything that is not documented. Please send to me so I can do this.

I’ve read a large amount of the relevant internal files in the plugins folder to try to better understand how it all works and it’s been useful, but it doesn’t go into detail on many features and is only selective at what it references, seems only what is relevant for building. Is there something I’m missing that I should check? I really wish I could read the source for dmengine, but list of internal script apis would be enough if that is shareable.

2 Likes

In what file are the auto complete strings of the editor at?

1 Like

For now… I’m using pprint for each section of known api such as pprint(sys()) to look for anything undocumented.

1 Like

At this stage there really shouldn’t be any undocumented APIs, and if there is then it’s either because we’ve forgotten to document it or less likely that the API isn’t considered stable yet. Have you found any undocumented APIs?

2 Likes

A hundred years ago, before Defold was acquired by King and was still in alpha, I spent some time finding hidden APIs (back then there was a few, I remember finding out how http worked with trial and error after finding it). The way I did it then was iterating over _G, which is the Lua global scope, and the iterating through each sub-table and so on until I found all.
As @britzl says though, I don’t think there is anything undocumented anymore.

2 Likes

I found one thing today that might be obvious to people who are used to Lua, but vmath.vector3 and vector4 types can be used with native operators like ==, +, -, / and *.

Might be obvious to some people, but since it is not mentioned in the vmath documentation, I didn’t realize it at first.

2 Likes

Ah, yes, that is very convenient and I believe it’s being used in the tutorials and in places in the manual as well. Still, it might be good to explicitly mention this @sicher.

4 Likes

Thanks. I’ll add some examples to the vmath api docs.