-
Notifications
You must be signed in to change notification settings - Fork 0
Context : WORLD
All actions in this context are part of the WORLD context.
Returnes the material at a given location. The location should be given as URI parameters.
example call: curl -v -H "App-Name: testApp" -H "App-Key: 1234-abcd" -X GET "http://localhost:8080/rest/v1/world/world/getMaterial?x=-125&y=71&z=211"
Sets the material at a given location. The location should be given as URI parameters. The material should be given as data parameters.
example call: curl -v -H "App-Name: testApp" -H "App-Key: 1234-abcd" -X POST "http://localhost:8080/rest/v1/world/world/setMaterial?x=-125&y=71&z=211" --data "{'material':'CHEST'}"
Adds given amount of items to a container block at given location. The location should be given as URI parameters. The itemStack should be given as data parameters.
example call: curl -v -H "App-Name: testApp" -H "App-Key: 1234-abcd" -X POST "http://localhost:8080/rest/v1/world/world/addToContainer?x=-125&y=71&z=211" --data "{'itemStack':{'material':'DIAMOND', 'amount':'64'}}"