Simplified JSON results
It should be possible to have a simplified and compact JSON per each entity containing only the relevant data.
The current /api/eccsresults
API returns the following JSON per each entity:
{
"contacts":
{
"support": "",
"technical":
"help.linux@unimi.it"
},
"date": "2020-11-24",
"displayName": "Universita' degli Studi di Milano",
"entityID": "https://idp.unimi.it/idp/shibboleth",
"registrationAuthority": "http://www.idem.garr.it/",
"sp1":
{
"checkTime": "2020-11-24T05:00:04Z",
"result": "Invalid-Form",
"httpCode": "200",
"wayflessUrl": "https://sp24-test.garr.it/Shibboleth.sso/Login?entityID=https://idp.unimi.it/idp/shibboleth"
},
"sp2":
{
"checkTime": "2020-11-24T05:00:12Z",
"result": "Invalid-Form",
"httpCode": "200",
"wayflessUrl": "https://attribute-viewer.aai.switch.ch/Shibboleth.sso/Login?entityID=https://idp.unimi.it/idp/\
shibboleth"
},
"status": "ERROR"
},
A simplified format of the above should avoid nested data structures and consolidate the data as in the below example:
{
"date": "2020-11-24",
"displayName": "Universita' degli Studi di Milano",
"entityID": "https://idp.unimi.it/idp/shibboleth",
"registrationAuthority": "http://www.idem.garr.it/",
"status": "ERROR",
"results": ["Invalid-Form", "Invalid-Form"]
}
The simplified format could be enabled adding an argument to the API call, as /api/eccsresults?format=simple