- Make relevant changes to kernel-images example adding a new endpoint at
kernel-images/server/cmd/api/api/computer.go, example I addedSetCursor()endpoint. - Run openApi to generate the boilerplate for the new endpoints with make oapi-generate
- Check changes at
kernel-images/server/lib/oapi/oapi.go cd kernel-images/images/chromium-headful- Build and run the docker image with
./build-docker.sh && ENABLE_WEBRTC=true ./run-docker.sh - Open http://localhost:8080/ in your browser
- Now new endpoint should be available for tests example curl command:
curl -X POST localhost:444/computer/cursor \
-H "Content-Type: application/json" \
-d '{"hidden": true}'