rawdog71 / Clownfish

Smart Content Management System using Spring Boot
Apache License 2.0
17 stars 7 forks source link

Service to create class structure #67

Closed rawdog71 closed 2 years ago

rawdog71 commented 2 years ago

As headless CMS it would be useful to add a service that defines and creates backend class structures. The service should consume a JSON with following format: { "classname": String, "searchenginerelevant": Boolean, "backendmaintenance": Boolean, "encrypted": Boolean, "fields": [ { "fieldname": String, "fieldtype": String, "filedisidentity": Boolean, "filedisautoinc": Boolean, "filedisindex": Boolean } ] } The service should check the auth token. It should check for an existing class. If already present, don't create and don't update. Response is error! When not present, create the new backend class structure. If hibernate usage is set, also create the corresponding table in the database.

rawdog71 commented 2 years ago

Use RestClass.java as entry point.

rawdog71 commented 2 years ago

Also added "classref": String to the fields structure to manage class refernces.