Why The API Pattern is Broken and How We Can Fix It - Code Sample - Example IO State
{
"VALUES": {
"id": {
"type": "PKEY",
"description": "ID for test"
},
"testdata": {
"type": "String",
"description": "Field to show testate",
"mockData": "blahblahblah"
}
},
"CURRENTSTABLE": "1",
"VERSION": {
"1": {
"DEFAULTACTION": "test/show",
"DEPRECATED": [
"MM/DD/YYY",
"message."
],
"URI": {
"test/show": {
"METHOD": "GET",
"DESCRIPTION": "Get test data",
"ROLES": [
"permitAll",
"ROLE_ADMIN",
"ROLE_USER"
],
"BATCH": [
"ROLE_ADMIN"
],
"REQUEST": {
"PERMITALL": [
"ID"
]
},
"RESPONSE": {
"permitAll": [
"id"
],
"ROLE_ADMIN": [
"testdata"
]
}
}
}
}
}
}