Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Backend Wiki

Rawad Karam edited this page Nov 15, 2018 · 14 revisions

Routes

POST: /generate-model?logicalName=<logical_name>

Currently, the backend accepts a multipart/formdata request with only one field:

{
  generator_inputs: array
}

Which will contain a maximum of 4 files:

  • <some_file>.xmi
  • <some_file>.ecore
  • <some_file>.vql
  • generation.vsconfig

Since this is the web and references to the user's local machine is not possible, the configuration file should be named exactly as described above and will need to be configured as follows: Every reference of one of the mentioned files should be referenced by using the "##" notation. If a reference to <some_file>.xmi is needed, then reference the file as ##<some_file>.xmi.

For example,

import epackage "/inputs/storage/FamMetamodel.ecore"

becomes

import epackage "##FamMetamodel.ecore"

Controllers

Blablabla