ExampleRest

Purpose

Demonstrates how to host a RESTful service in RIDE so that it can be accessed via an HTTP request from a web browser.

How to Use

During runtime, you can send commands from your browser to both load and destruct the terrain. 

Paste the following links in the url field in your browser in order to send a REST request to RIDE.

Load

http://127.0.0.1:9157/TerrainService/Load/?name=[Insert server path for Razish20 json per individual RIDE distribution agreement]&lod=L20&collider=[Insert server path for Razish20 json per individual RIDE distribution agreement]&colliderlod=L20&pos=787,273,2437&radius=1500&trees=true

Destruct

http://127.0.0.1:9157/TerrainService/Destruct/?lat=35.3274256147157&lon=-116.520442119182&radius=20&power=300

Scene Location & Name

Assets/Ride/Examples/Services/REST/ExampleRest.unity

Setup Requirements 

ExampleRest Script

Add this script to an object in your scene to utilize the RESTful service and Destruct event. 

 

 

Scroll Up