Delete entities don`t work in Orion -


how can delete entities? show in code, entity exist obtain error when try delete it.

[root@host-192-168-192-78 ~]# curl localhost:1026/v1/contextentitytypes/room -s -s --header 'content-type: application/xml' | xmllint --format - <?xml version="1.0"?> <querycontextresponse>   <contextresponselist>     <contextelementresponse>       <contextelement>         <entityid type="room" ispattern="false">       <id>bedroom1</id>     </entityid>     <contextattributelist>       <contextattribute>         <name>temperature</name>         <type>float</type>         <contextvalue>27.8</contextvalue>       </contextattribute>       <contextattribute>         <name>presence</name>         <type>boolean</type>         <contextvalue>true</contextvalue>       </contextattribute>       <contextattribute>         <name>status</name>         <type>string</type>         <contextvalue>ok</contextvalue>       </contextattribute>     </contextattributelist>   </contextelement>   <statuscode>     <code>200</code>     <reasonphrase>ok</reasonphrase>   </statuscode> </contextelementresponse> 

above check entity exists, now, when try delete obtain following:

[root@host-192-168-192-78 ~]# curl localhost:1026/ngsi10/contextentities/bedroom1 -s -s --header 'content-type: application/xml' -x delete <statuscode>   <code>404</code>   <reasonphrase>no context element found</reasonphrase>   <details>bedroom1</details> </statuscode> 

i think url used delete incorrect. should be

localhost:1026/v1/contextentities/bedroom1


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -