Receiving data into OH2 items from other device via REST API

Hi all,

I am struggling a bit with the concept of this REST API. I am using octoprint to control my 3D printer and would like some of the thing to show up on my openhab.

E.g. I would like the nozzle temperature and printing ETA as an openhab item.

Which type of thing/item do I have to define to access (and possibly send) commands to a different device via REST?

Thanks!

EDIT:
I found a solution, and it is simple. Documented here: 3D Printer Status and Commands from/to Octoprint via HTTP REST API