lf-edge / ekuiper

Lightweight data stream processing engine for IoT edge
https://ekuiper.org
Apache License 2.0
1.48k stars 414 forks source link

Ekuiper delete and update external services not working #3070

Closed nbenhur closed 1 month ago

nbenhur commented 3 months ago

I am following the link https://ekuiper.org/docs/en/latest/api/restapi/services.html for registering the external service in edgex ekuiper running in docker environment. I successfully registered external service using command

POST http://localhost:59720/services Please enter content (application/x-www-form-urlencoded) to be POSTed: { "name":"tsschemaless", "file":"http://192.168.29.74/downloads/tsschemaless.zip" }

Now i wanted to update tsschemaless.zip file. I used below command

PUT http://localhost:59720/services { "name":"tsschemaless", "file":"http://192.168.29.74/downloads/tsschemaless.zip" }

which gives me below error PUT: command not found name:tsschemaless,: command not found bash: file:http://192.168.29.74/downloads/tsschemaless.zip: No such file or directory

I tried to delete existing service. so i used below command DELETE http://localhost:9081/services/tsschemaless

I am getting the error "DELETE: command not found" DELETE http://localhost:9081/services/tsschemaless

Please help to solve these errors of PUT and DELETE. Attached the screen shorts. Screenshot from 2024-07-30 18-02-36 Screenshot from 2024-07-30 18-03-44 Screenshot from 2024-07-30 18-04-41

Yisaer commented 3 months ago

Hi @nbenhur

Have you checked response after you post the services? If the services was created successfully, it can be queryed by GET http://localhost:9081/services. Also you can find it in the ./data/services folder

nbenhur commented 3 months ago

Hi, I checked the response after post the service. I attached the response screenshot. I am facing trouble with updating the service using PUT request and deleting the existing service using DELETE. According to the link https://ekuiper.org/docs/en/latest/api/restapi/services.html. Please help regarding PUT and DELETE requests.

On Thu, Aug 1, 2024 at 8:38 AM Song Gao @.***> wrote:

Hi @nbenhur https://github.com/nbenhur

Have you checked response after you post the services? If the services was created successfully, it can be queryed by GET http://localhost:9081/services. Also you can find it in the ./data/services folder

— Reply to this email directly, view it on GitHub https://github.com/lf-edge/ekuiper/issues/3070#issuecomment-2261873646, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFN4JWWURUS6UPQICC2ANADZPGRC3AVCNFSM6AAAAABLWJML6OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRRHA3TGNRUGY . You are receiving this because you were mentioned.Message ID: @.***>

ngjaying commented 1 month ago

@nbenhur You'll need to use a HTTP client like postman to issue those REST API commands.

ngjaying commented 1 month ago

Close as no response.