Modeluri explanation? #89
Replies: 1 comment 1 reply
-
A
It updates the in-memory representation of the resource. Once the client requests a save, it is physically saved to disk too.
I'd guess this is decided based on the file extension, but I'm not sure. Maybe @ndoschek can answer that? |
Beta Was this translation helpful? Give feedback.
-
As always, I'm a little, strike that -- a lot, confused. Now that I'm looking at the ecore-glsp code I'm drawn to ModelServer itself. Interactions with the model server use a "modelUri" parameter. Does this parameter always point to an external file? I thought model server internalized a given model and then provided APIs for interacting with that, but all the interactions I see in the model server readme include a modelURI parameter naming what seems to be an external file. What am I misunderstanding?
Let me include another question that is just an aspect of the one above. In the readme's "REST API Example" one piece demonstrates a PATCH update with a modelUri of SuperBrewer3000.json. Does such an update physically update the file SuperBrewer3000.json?
And yet another related question, concerning the HTTP endpoint that "gets all available models in the workspace." In the context of this request what constitutes a model? IOW, how does the model server decide that something in the workspace is a model?
Beta Was this translation helpful? Give feedback.
All reactions