Ѧ
What is Ѧ?
How does it work?
Why use it?
What's next?
ѦPI
Library
Ѧbout
auth
validate
login
logout
udata
phone
name
address
accountType
hospital
cc
subscribe
subscription
activate
hospitals
update
create
read
destroy
accountTypes
payload
patient
survey
surveys
/api/hospitals/
%/{site.ampn./api/hospitals/}
Create
Generate Header
Test AJAX
POST
/api/hospitals/?
j=
{
"update":
{
},
"create":
{
"hospitalName":
{
"in_attr":
{
},
"label":
{
}
}
},
"read":
{
},
"destroy":
{
}
}
Returns:
hospitals_id on success, -1 on failure.
Read
Generate Header
Test AJAX
GET
/api/hospitals/?
i=
[
]
j=
{
"update":
{
},
"create":
{
"hospitalName":
{
"in_attr":
{
},
"label":
{
}
}
},
"read":
{
},
"destroy":
{
}
}
Returns:
Update
Generate Header
Test AJAX
POST
/api/hospitals/?
i=
[
]
j=
{
"update":
{
},
"create":
{
"hospitalName":
{
"in_attr":
{
},
"label":
{
}
}
},
"read":
{
},
"destroy":
{
}
}
Returns:
0 on success, -1 on failure.
Delete
Generate Header
Test AJAX
POST
/api/hospitals/?
i=
[
]
Returns:
0 on success, -1 on failure.