Skip to content

Get custom response data from custom model server comand #195

Closed Answered by ndoschek
mishaltripathi asked this question in ModelServer
Discussion options

You must be logged in to vote

Hi @mishaltripathi,

to directly return a Json object via the edit API, you would have to extend the API you are using (e.g. the ModelServerClientApiV2) and also extend the ModelServer itself by adding a separate endpoint to return the Json object response.

There is one example available via the emfcloud-modelserver example server and the emfcloud-modelserver-theia example application. It triggers a custom 'counter' command that returns the current counter object in Json format.
You can test that by starting up the example application and use the menu Custom to trigger this custom command.
See also this short clip:

discussion_custom_command.mp4

Some useful starting points are:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mishaltripathi
Comment options

Answer selected by mishaltripathi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants