title: API Reference
language_tabs:
includes:
search: true
toc_footers:
Welcome to the generated API reference. Get Postman Collection
#general
Example request:
curl -X GET "http://localhost/api/user" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://localhost/api/user",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"index_resource": true
}
GET api/user
Example request:
curl -X GET "http://localhost/api/user/create" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://localhost/api/user/create",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"create_resource": true
}
GET api/user/create
Example request:
curl -X POST "http://localhost/api/user" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://localhost/api/user",
"method": "POST",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
POST api/user
Example request:
curl -X GET "http://localhost/api/user/{user}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://localhost/api/user/{user}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"show_resource": "1"
}
GET api/user/{user}
Example request:
curl -X GET "http://localhost/api/user/{user}/edit" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://localhost/api/user/{user}/edit",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"edit_resource": "1"
}
GET api/user/{user}/edit
Example request:
curl -X PUT "http://localhost/api/user/{user}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://localhost/api/user/{user}",
"method": "PUT",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
PUT api/user/{user}
PATCH api/user/{user}
Example request:
curl -X DELETE "http://localhost/api/user/{user}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://localhost/api/user/{user}",
"method": "DELETE",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
DELETE api/user/{user}