BEST Offers , For All Sximo 5 LTS licence Holer , Upgrade Licence For only $14 Normal Price on Codecanyon $31
New product Sximopress ( Wordpress Builder ) 1.0 has been realesed . download it now !

Sximo 5 LTS - Builder

Create Awesome & Professional CRUD Web Application CMS Within Minutes

Rest API Client

Go to : Control Panel -> RestApi Client
You can easly manage users and module access via RestAPi Client Editor
Available Access Via API
Method    Path                                                Action  Route Name
GET       http://yourapp.com/sximoapi?module={module_name}    index   sximoapi.index
POST      http:// yourapp.com/sximoapi?module={module_name}   store   sximoapi.store
GET       http:// yourapp.com/sximoapi/id?module={module_name}show    sximoapi.show
PUT/PATCH http:// yourapp.com/sximoapi/id?module={module_name}update  sximoapi.update
DELETE   http:// yourapp.com /sximoapi/id?module={module_name}destroy sximoapi.destroy 

Access API Via Javascript
Retrive All data from spesific module :
$.ajax({
    dataType: "json",
    url     :'http://yourdomain.com/sximoapi?module=employee',
    headers: {"Authorization": "Basic " +
        btoa("superadmin@mail.com:pLihtt-I4jzL")},
        success
        : function(data){
        // Do return value here //
    }
})
View Detail data from spesific module :
$.ajax({
    dataType: "json",
    type    : "GET",
    url     :'http://yourdomain.com/sximoapi/1?module=employee',
    headers : {"Authorization": "Basic " +
        btoa("superadmin@mail.com:pLihtt-I4jzL")},
        success
        : function(data){
        // Do return value here //
    }
})
Create new data
$.ajax({
dataType    : "json",
type        : "POST",
data        : { "field":"value","field":"value" },
url         : 'http://yourdomain.com/sximoapi/1?module=employee',
headers     : {"Authorization": "Basic " +
    btoa("superadmin@mail.com:pLihtt-I4jzL")},
    success
    : function(data){
    // Do return value here //
    }
})
Update Data
Delete Data
$.ajax({
dataType: "json",
type: 'DELETE',
url:'http://yourdomain.com/sximoapi/1?module=employee',
headers: {"Authorization": "Basic " +
    btoa("superadmin@mail.com:pLihtt-I4jzL")},
    success: function(data){
        $.ajax({
        dataType: "json",
        type    : "PUT",
        data: { "field":"value","field":"value" },
        url:'http://yourdomain.com/sximoapi/1?module=employee',
        headers: {"Authorization": "Basic " +
            btoa("superadmin@mail.com:pLihtt-I4jzL")},
            data: [{"field":"value","field":"value"}],
            success: function(data){
            // Do return value here //
            }
        })
    // Do return value here //
    }
});

Access API Via PHP CURL
Retrive All data from spesific module
$ curl --user useremail:apikey
http://yourdomain.com/sximoapi?module=modulename
View Detail data from spesific module
$ curl --user useremail:apikey
http://yourdomain.com/sximoapi/1?module=modulename
Create new data
$ curl --user useremail:apikey
http://yourdomain.com/sximoapi?module=modulename
-X POST -d '{"field":"value","field":"value"}' -H "Content-Type: application/json"
Update Data
$ curl --user useremail:apikey
http://yourdomain.com/sximoapi/1?module=modulename
-X PUT -d '{"field":"value","field":"value"}' -H "Content-Type:application/json"
Delete Data
$ curl --user useremail:apikey
http://yourdomain.com/sximoapi/1?module=modulename-X DELETE

API Testing Tools
If you want to test your SximoApi , you can use RESTClient debugger for Firefox Addon . You can download here https://addons.mozilla.org/en-us/firefox/addon/restclient/

Please Register Purchased Code for full access Docs


Last Update : 2017-03-11 01:02:04