From 7a048e5e3df257f160d1b48737ccaec36c7cf2d4 Mon Sep 17 00:00:00 2001 From: miqlangelo Date: Wed, 7 May 2025 09:30:09 +0200 Subject: [PATCH] http file --- src/robo-project/test.http | 45 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 src/robo-project/test.http 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