I'm trying to generate JS for my simple REST API like eg described here: doc. My example code:
import vibe.d;
import wbapi;
import std.array : appender;
import vibe.core.file;
void main()
{
// generate JS for access
auto test = appender!string;
auto settingsJS = new RestInterfaceSettings;
settingsJS.baseURL = URL("http://localhost/api/integration/");
generateRestJSClient!IfWhiteBlowerAPI(test, settingsJS);
}
and interface:
@path("/api/integration")
interface IfWhiteBlowerAPI
{
Json get();
string postDeaf(Json obj);
}
Everything is compiling without any problem but i can't find generated JS anywhere. Am i looking in wrong place - main tree of app project?