Hi,
thanks for reply, I couldn't find any rest custom sensor except beta rest custom sensor.
So I'm using Http advanced sensor, but couldn't find relevant information how to use that sensor
for example :- First I need to POST to get token for further methods like POST GET.
Post information
curl -X POST -d '{"username":"test", "password":"123"}' http://xxx.xx.xxx.xxx:<port>/login
this will return token and then need to use for get information
Get information
curl -X GET -H "Authorization":"Bearer eyJhbGciOiJIUzM4NCIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwidXNlcklEIjoiOTQ0YjcyOWEtOTQxMy00MmE4LWFkMTItNjY3ZWVkMGY1NmU4IiwiZXhwIjoxNjA0OTQyMDcyLCJpYXQiOjE2MDQ5Mzg0NzJ9.497wRxkH-G-JBe0PG6i8vqbW0OOAxZEeViNSlfbmE-z63Czt0aG0OB34hJ37jd5N" -H "Content-type: application/json" http://xxx.xx.xxx.xxx:<port>/version
How to can simulate above scenario and which the best sensor to use?
In HTTP advance sensor where to mention token?
POST AND GET data stores to some file , how to use that information for next method?
Add comment