Onto-Med / top-api

REST API of the TOP Framework
https://onto-med.github.io/top-api/
MIT License
0 stars 1 forks source link

Evaluate usage of vendor extensions to add annotations to generated code #51

Closed ChristophB closed 2 years ago

ChristophB commented 2 years ago

There are supported vendor extensions to extend the generated spring-boot code with additional annotations like "org.springframework.data.neo4j.core.schema.Relationship", "org.springframework.data.neo4j.core.schema.Node", etc.

We could use these extensions to make the top-api models compatible with spring-data-neo4j. This would enable us to store the objects natively in neo4j without complex and computationally intensive mappings.

Some more examples for annotations we might need for our model classes:

We can add these annotations to the schemas/top-api.yml file with x-field-extra-annotation and x-class-extra-annotation properties.

Problems

Versions are not part of the top-api. Thus, it must be evaluated how they can be incorporated.