title: API Reference
language_tabs:
includes:
search: true
toc_footers:
Welcome to the generated API reference. Get Postman Collection
#general
This will be the long description. It can also be multiple lines long.
Example request:
curl -X GET "http://localhost/api/test" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://localhost/api/test",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
null
GET api/test
HEAD api/test
Example request:
curl -X GET "http://localhost/api/fetch" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://localhost/api/fetch",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"id": 1,
"name": "Banana",
"color": "Red",
"weight": "300 grams",
"delicious": true
}
GET api/fetch
HEAD api/fetch