eclipse-agail / agile-core

Source code repository for agile core components
Eclipse Public License 2.0
7 stars 16 forks source link

Error on GET `/device/{deviceId}/execute/{command}` #50

Closed jordiescudero closed 5 years ago

jordiescudero commented 7 years ago

Hi, due to the issue "https://github.com/Agile-IoT/agile-node-red-nodes/issues/3" I tryed to use the http api directly but seems that the implementation is not complete.

If I try to execute a command the server cannot parse the body in order to create the args parameter (Map<String,Variant> args):

@POST
@Path("/execute/{command}")
public void Execute(@PathParam("id") String id, @PathParam("command") String command, Map<String,Variant> args) 

Have you any example of POST that allow this kind of invocations?

Regards