eclipse-emfcloud / emfcloud-modelserver

Modelserver component
Other
40 stars 21 forks source link

Support for uploading model files #238

Closed AlexandraBuzila closed 1 year ago

AlexandraBuzila commented 1 year ago

Currently, all available models are loaded on startup. For some scenarios, when the models are managed outside the model server, it would make sense to provide an endpoint that can be used to upload models to the model server, e.g. putModel that receives the contents of a model file and loads it.

AlexandraBuzila commented 1 year ago

@ndoschek do you think this would be useful?

ndoschek commented 1 year ago

Hi @AlexandraBuzila! Would the existing endpoint [POST] /models (see also https://github.com/eclipse-emfcloud/emfcloud-modelserver#http-endpoints---v2) work for this scenario as well?

AlexandraBuzila commented 1 year ago

Thanks @ndoschek! You're right, the [POST] /models endpoint does exactly that.