Page 1 of 1

Rest API for Dashboard & Master params

Posted: Sun Jan 02, 2022 00:09
by jns
I'm confused by the Swagger API on how to write the proper request for controlling the dashboard and master params. How should the code below be changed in order to a) set the master value and b) update Dashboard Link 1?

Code: Select all

axios.post('http://192.168.1.222:8080/api/v1/composition/master/value', "0.5").then(
	(response) => {
		console.log(response)
	},
	(error) => {
		console.log(error)
	}
)

Re: Rest API for Dashboard & Master params

Posted: Sun Jan 02, 2022 00:19
by jns
Aha!

Code: Select all

axios
	.put('http://localhost:8080/api/v1/composition', {
		speed: {
			value: 0.5,
		},
	})
	.then(
		(response) => {
			console.log(response)
		},
		(error) => {
			console.log(error)
		}
	)