Git Product home page Git Product logo

Comments (5)

jlcanovas avatar jlcanovas commented on July 24, 2024

Hi Reinhold-

Thanks for your report. I acknowledge the problem as I could reproduce it.

We will work to fix this, I'll let you know asap.

from emf-rest.

jlcanovas avatar jlcanovas commented on July 24, 2024

Hi again,

the problem is in the documentation. It is said that you have to create a folder called model and it should be models. I will change now the documentation.

Please, try to change the name of the folder and then do the generation. Let us know if it works.

In any case, we will change this requirement for future versions.

Thanks again for playing with the tool.

from emf-rest.

jlcanovas avatar jlcanovas commented on July 24, 2024

Just to be clear, the problem is that the code generator needs a models folder in the WebContent folder of the Web Dynamic project. It does not matter where you put the ecore file, but the WebContent/models folder must be created.

I hope this clarifies the problem.

from emf-rest.

Reinhold- avatar Reinhold- commented on July 24, 2024

With the updated installation documentation I was able to get the code generation running for your example model. Thanks for that Javier!

Maybe you should also clarify in the documentation that a model instance (e.g. the Simpsons.xmi file) should be placed into the WebContent/models/ folder in order to test the REST service:

"By default the generated code will search for your data (i.e., the instances of the classes in the model) in the WebContent/models folder. So you have to create the folder 'models' in the WebContent folder and copy your model instance files (.xmi files) into it. .."

As next step I will try to generate code for our fairly more complex model (~150 classes).

from emf-rest.

jlcanovas avatar jlcanovas commented on July 24, 2024

Ok, I've changed the documentation to include the example ecore and xmi files.

Do not hesitate to contact us if you find any other problem.

Thanks!

from emf-rest.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.