Description

Use this API to obtain the information about the elements controlled by the Dafne Control System. Possible arguments are:

  • all: get all elements information;
  • comma_separated_element_list: all requested elements information;

In case of positive execution, this is the format of the response object:

  • cacheHit: <bool>
  • elementList: <list of dict>
    • name: <str>
    • devilNumber: <int>

Example Query (ALL ELEMENTS)

GET Query URI
http://danteweb.lnf.infn.it:8000/element/getInfo/all


API Response
{
	"cacheHit": false,
	"elementList": [{
		"name": "SER19001",
		"devilNumber": 601
	}, {
		"name": "SER19002",
		"devilNumber": 601
	}, {
		...
	}, {
		"name": "DCTPS002",
		"devilNumber": 723
	}]
}


Example Query (ELEMENT LIST)

GET Query URI
http://danteweb.lnf.infn.it:8000/element/getInfo/SXPES101,SIPPS108,MOVEL2E1


API Response
{
	"cacheHit": true,
	"elementList": [{
		"name": "SXPES101",
		"devilNumber": 606
	}, {
		"name": "SIPPS108",
		"devilNumber": 612
	}, {
		"name": "MOVEL2E1",
		"devilNumber": 689
	}]
}
  • No labels