diff --git a/src/robo-project/test.http b/src/robo-project/test.http new file mode 100644 index 0000000..851bbf9 --- /dev/null +++ b/src/robo-project/test.http @@ -0,0 +1,45 @@ +# REST Client - Huachao Mao + +### Get Status Light +GET http://172.20.10.2/statuslight/state + +### POST +POST http://172.20.10.2/move + +{ + "motorLeft": { + "direction": "forward", + "speed": 50 + }, + "motorRight": { + "direction": "forward", + "speed": 20 + }, + "durationInSeconds": 3 +} + +### POST light +POST http://172.20.10.2/light + +{ + "led_0": { + "red": 0, + "green": 255, + "blue": 0 + }, + "led_1": { + "red": 0, + "green": 255, + "blue": 0 + }, + "led_2": { + "red": 0, + "green": 255, + "blue": 255 + }, + "led_3": { + "red": 0, + "green": 255, + "blue": 255 + } +} \ No newline at end of file