jayeshdesai4520 / chatbot-ng-internal

MIT License
3 stars 0 forks source link

Fetch list of Qanary components from Qanary framework instance #12

Closed anbo-de closed 3 years ago

anbo-de commented 3 years ago

DOD

jayeshdesai4520 commented 3 years ago

Hi @anbo-de @Perevalov I am trying to fetch a list of active components using below code import requests req = requests.get("https://webengineering.ins.hs-anhalt.de:43740/QanaryConfigurationController/components").content req but I am getting this error b'{"timestamp":"2021-07-05T05:47:41.827+0000","status":404,"error":"Not Found","message":"No message available","path":"/QanaryConfigurationController/components"}'

I think I am using the wrong URL to get a list of components

here is the detail on how to get a list of components - https://github.com/WDAqua/Qanary/pull/49

can you check and tell me what I am doing wrong here?

jayeshdesai4520 commented 3 years ago

Hi @anbo-de @Perevalov I am trying to fetch a list of active components using below code import requests req = requests.get("https://webengineering.ins.hs-anhalt.de:43740/QanaryConfigurationController/components").content req but I am getting this error b'{"timestamp":"2021-07-05T05:47:41.827+0000","status":404,"error":"Not Found","message":"No message available","path":"/QanaryConfigurationController/components"}'

I think I am using the wrong URL to get a list of components

here is the detail on how to get a list of components - WDAqua/Qanary#49

can you check and tell me what I am doing wrong here?

Issue solved I have to use import requests req = requests.get("https://webengineering.ins.hs-anhalt.de:43740/components").content req