Resti

This project is abandoned and its default file will likely not work with the most recent version of Minecraft. Whether this project is out of date or its author has marked it as abandoned, this project is no longer maintained.

This plugin can be used to create minimal REST calls.

REST calls can be used for all sorts of things. You can use them, for example, to interface with multiple exterior devices such as Arduino Yun's with the Bridge sketch running to interface lights and motors (and sensors, but this particular REST call plugin does not currently take return values or other functions than GET to protect potentially sensitive network data until more testing has been completed to make sure that only OP's and command blocks can use the command)

This particular implementation is aimed to be designed for server administrators to be able to interface the outside world in a dynamic way, allowing interface to outside services quite easily. An example of this would be interfacing Twitter's REST API. Next version up I will be working on a way to be able to do both POST and GET and POST and DELETE, and to find a way to deal with return statements in a way that you can process the data, likely with a secondary command that spits out a result via redstone from a command block with a special command in it.

Currently the only REST services that this will work well for that I can think of is the Arduino Yun REST API without password protection on the API. Intentions are to expand the software to be able to fully implement REST as best as I can with Minecraft.

Current Usage:

/resti (address) [port] (path)

where ADDRESS is the IP or domain name that you would like the data sent to, PORT is the remote port to connect to (not required, will default to port 80, and PATH is the location you would like to fetch, with a leading / on all paths. For example, on an Arduino Yun, to turn on Pin 13, you would type /arduino/digital/13/1 and that would turn the LED on, and /arduino/digital/13/0 to turn it off.

The source is available on GitHub, and I would highly recommend posting errors and possible solutions to bugs in the program.

https:github.com/jrddunbr/Resti


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    96497
  • Created
    Dec 6, 2015
  • Last Released File
    Dec 6, 2015
  • Total Downloads
    218
  • License

Categories

Members

Recent Files

Bukkit