B4J Question [Web API Server v2]

MauSan

Member
Licensed User
Longtime User
Hi!
I have downloaded the DarkoT ERP Api Server version and he has helping me a lot, however I have the problem that I can´t even compile de project due to a library issue. Even reading the tutorial and versions of the api server, has not helped me (I assume I am not taking attention to something, surely).

I will try to describe de issue.
The following image shows the full action that compiler is seeing wrong:
1755123889366.png

The IDE is in spanish but I suppose is understandable, the message when compiling refers "if I'm missing a library reference".

The public variables missing references are:

Missign library reference:
Sub Process_Globals
    Public const VERSION As String = "2.7"
    Public Server                     As Server
    Public Config                     As Map
    Public Element                     As Element
    Public Controllers                 As List
    Public SimpleResponse             As SimpleResponse
    Public DBConnector                As DatabaseConnector
    Public PRINT_FULL_REQUEST_URL    As Boolean

I most note that MiniOrmUtils is last update version, but i have tried the version posted en the correspondent Post of AEric's project description page.
Same thing to WebApiUtils.
I was thinking about (maybe) class file missing when I downloaded de project.
I know there's the very new Pakai version (I have alrady install it and it runs without any problems) but my interest in the DarkoT version is the ability to create the api's endpoints in a text file without modifying the code.

AEric, I would really appreciate your help in this.

Thanks in advance for your help.
 

aeric

Expert
Licensed User
Longtime User
You need to use the old version libraries.
Can you ask DarkoT what version of libraries he is using?
 
Upvote 0

MauSan

Member
Licensed User
Longtime User
Hi @aeric

At last it is working, I think it was my bad because i messed up with the libraries versions and got confused.

I thanks @DarkoT too for his time and very kindly help.

Big thanks!
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
The last version of Web API Server v2 is more than 1 year.
Things have changed a lot since v3 especially MiniORMUtils and WebApiUtils.
 
Upvote 0

MauSan

Member
Licensed User
Longtime User
Hi @aeric.

Yes I know, but essentially I want to work with this version because of the practical way to add an API endpoint. Actually I am working with Pakai version and i will try to add this capability (add endpoints via api file) to this version.

I want to thank you for sharing this very good and useful tool. I will buy you a coffee of course.

Thanks again for the good work.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
Hi @aeric.

Yes I know, but essentially I want to work with this version because of the practical way to add an API endpoint. Actually I am working with Pakai version and i will try to add this capability (add endpoints via api file) to this version.

I want to thank you for sharing this very good and useful tool. I will buy you a coffee of course.

Thanks again for the good work.
I am happy to hear you find it useful for you.
 
Upvote 0
Top