@eclipse-emfcloud/coffee-custom-commands-example
Advanced tools
Comparing version 0.2.0-next.ce04993.18 to 0.2.0-next.d9b3b27.30
@@ -63,3 +63,3 @@ "use strict"; | ||
} | ||
getCommands(customCommand) { | ||
getCommands(_modelUri, customCommand) { | ||
const [modelURI, elementID] = customCommand.owner.$ref.split('#'); | ||
@@ -66,0 +66,0 @@ return async (executor) => { |
{ | ||
"name": "@eclipse-emfcloud/coffee-custom-commands-example", | ||
"version": "0.2.0-next.ce04993.18+ce04993", | ||
"version": "0.2.0-next.d9b3b27.30+d9b3b27", | ||
"description": "Example custom command plug-in for the Model Server.", | ||
@@ -27,3 +27,3 @@ "license": "(EPL-2.0 OR MIT)", | ||
"dependencies": { | ||
"@eclipse-emfcloud/modelserver-plugin-ext": "0.2.0-next.ce04993.18+ce04993", | ||
"@eclipse-emfcloud/modelserver-plugin-ext": "0.2.0-next.d9b3b27.30+d9b3b27", | ||
"inversify": "^5.1.1" | ||
@@ -49,3 +49,3 @@ }, | ||
}, | ||
"gitHead": "ce04993de916e356ac692284e7bb9ff5ca0f9218" | ||
"gitHead": "d9b3b27cb095d547d0a474c187cc836abb75fbc0" | ||
} |
@@ -78,3 +78,3 @@ # Custom Commands Example | ||
```plain | ||
http://localhost:8082/api/v2/models?modeluri=SuperBrewer3000.coffee | ||
http://localhost:8082/api/v2/models?modeluri=SuperBrewer3000.coffee&format=json-v2 | ||
``` | ||
@@ -100,2 +100,7 @@ | ||
You also need to set the following two headers for the request to work: | ||
- Content-Length = \<calculated when request is sent> | ||
- Content-Type = application/json | ||
Note that this uses the EMF URI fragment determined earlier in the `owner.$ref` property. | ||
@@ -102,0 +107,0 @@ The command is a custom `increment-duration` type and has no other parameters. |
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
34116
128