Another REST question - output format

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
rocketman
Posts: 1193
Joined: Fri Jan 02, 2009 11:22 pm
Location: Preston UK
Contact:

Another REST question - output format

Post by rocketman »

So, here's the output from AIM. As you can see the actual date records are encapsulated in a container called response
{
"response": [
{
"DurationDays": 5,
"PlacesAvailable": 0,
"CourseDate": "2022-09-12",
"PlacesOnCourse": 6,
"CourseNumber": 8,
"WebSubject": "Public Course (double)"}
,
{
"DurationDays": 5,
"PlacesAvailable": 2,
"CourseDate": "2022-06-06",
"PlacesOnCourse": 3,
"CourseNumber": 2,
"WebSubject": "Public Course"}
]
}

This is a sample from the tutorial documentation of a wordpress plugin So my questions are - Who's right, Who's wrong? Is there a standard? can that response tag be suppressed coming out of AIM or should I continue the search for a decent WP plugin? Can anyone recommend a plugin. (the response from the plugin (wpDataTables) is "Please provide a valid format for the cell". I am using AIM 8.1 - is this something that got fixed/improved in a later version of AIM

[
{
"Name": "Ivor Chen",
"Gender": "Female",
"Marital Status": "Single",
"Department": "Accounting"
},
{
"Name": "David Gordon",
"Gender": "Female",
"Marital Status": "Married",
"Department": "Tech Support"
}
Rocketman

V8.1 Developer Edition. Server 2012 Standard edition. MySql 5.5
Post Reply