CMDBuild Forum

Webservice (REST) operation for creating classes

Hello,

at the moment I am validating CMDBuild for some project purposes (handling and structuring the classes etc). I have setup a docker image (which I will share soon on docker hub), to test different data structure if the fit the needs (so I can spin up immediately a clean version when something went wrong).

I am able to consume data via REST & SOAP and I succeded in entering bulk data via Python / REST into existing classes. Now it would be really nice to not only create cards via REST Interface, but to create classes as well automatically via script (if no other option is possible, I would do it directly in the Database, if you tell me the needed steps / update SQLs). I didn't find anything regarding this in the Webservice Manual.

Thanks and best regards

If you create a class / attribute / domain and then have a look at dd_log files (configurable in WEB-INF / conf / log4j.conf) there you can find the corresponding SQL scripts.
CMDBuild Team

Thanks for the hint! Taking the SQLs from dd_log works for the database part: so the tables / attributes are created by using the statements as expected, but: they don't show up in the GUI of CDMBuild....is there any caching, flag or something else in preventing showing up the new tables or attributes which are present in the Database?

 

 

Previously Tecnoteca wrote:
If you create a class / attribute / domain and then have a look at dd_log files (configurable in WEB-INF / conf / log4j.conf) there you can find the corresponding SQL scripts.
CMDBuild Team

 

Administrazion Module => Configuration => Server management => Clear cache (Administrator Manual page 106) + CTRL F5 on the browser.

CMDBuild Team

Thanks, that worked indeed!

 

But it's

Administrazion Module => Setup

=> Server management => Clear cache

 

Previously Tecnoteca wrote:

Administrazion Module => Configuration => Server management => Clear cache (Administrator Manual page 106) + CTRL F5 on the browser.

CMDBuild Team