Skip to content

Enabling/callback-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

callback-playground

The callback-playground project serves as a playground for reacting to callback events triggered by the enabling company system.

It allows you to define a callback in the enabling system that, when triggered, makes a request to a mockbin of your choosing.

The playground detects new callbacks being fired (after some time) and will trigger a custom action for each callback.

Flavors

The playground comes in the following flavours:

  • plain-java: a plain Java application that runs as a simple JAR, and
  • spring-boot: a Spring Boot application that runs inside a TomCat container which allows you to use Spring's dependency injection and REST controllers to interact with the running application.

Additional documentation

See enabling trigger documentation for more information about trigger creation.

Example curl (replace where necessary):

curl -i -X POST -H "Authorization:Bearer xxxxx" -H "Accept:application/json" -H "Content-type:application/json" https://api.enabling.be/seaas/0.0.1/device/xxx/triggers/create/x -d '{"trigger":{"unit":"Celsius","conditionValueName":"temperature","conditionValueType":"int","condition":"temperature>23","callbackUrl":"http://mockbin.org/bin/xxxxx000000xxxxxxxx"}}'

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages