Rest API for Dashboard & Master params

Post your questions here and we'll all try to help.
Post Reply
jns
Posts: 7
Joined: Thu Oct 11, 2012 15:03

Rest API for Dashboard & Master params

Post 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)
	}
)

jns
Posts: 7
Joined: Thu Oct 11, 2012 15:03

Re: Rest API for Dashboard & Master params

Post 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)
		}
	)

Post Reply