[-][+] demo@doophp
Doophp RESTful API demo. Class used - DooRestClient
...

Food by ID http://www.doophp.com/demos/rest_client_server/index.php/api/food/list/all.json

Result:
HTTP result code: 200
Received content-type: application/json; charset=utf-8

JSON string:

[{"food":"One Ton Mee","type":"Noodles","rating":"10 out of 10"},{"food":"Bak Kut Teh","type":"Meat","rating":"10 out of 10"},{"food":"Asam Laksa","type":"Noodles","rating":"10 out of 10"},{"food":"Mee Rebus","type":"Noodles","rating":"10 out of 10"},{"food":"Nasi Lemak","type":"Rice","rating":"10 out of 10"},{"food":"Roti Canai","type":"Bread?","rating":"10 out of 10"},{"food":"Bubur Ayam KFC","type":"Porridge","rating":"5 out of 10"},{"food":"Dim Sum","type":"Touch Heart??","rating":"11 out of 10"},{"food":"Ampang Neong Toh Fu","type":"Tofu","rating":"10 out of 10"}]

Array
(
    [0] => stdClass Object
        (
            [food] => One Ton Mee
            [type] => Noodles
            [rating] => 10 out of 10
        )

    [1] => stdClass Object
        (
            [food] => Bak Kut Teh
            [type] => Meat
            [rating] => 10 out of 10
        )

    [2] => stdClass Object
        (
            [food] => Asam Laksa
            [type] => Noodles
            [rating] => 10 out of 10
        )

    [3] => stdClass Object
        (
            [food] => Mee Rebus
            [type] => Noodles
            [rating] => 10 out of 10
        )

    [4] => stdClass Object
        (
            [food] => Nasi Lemak
            [type] => Rice
            [rating] => 10 out of 10
        )

    [5] => stdClass Object
        (
            [food] => Roti Canai
            [type] => Bread?
            [rating] => 10 out of 10
        )

    [6] => stdClass Object
        (
            [food] => Bubur Ayam KFC
            [type] => Porridge
            [rating] => 5 out of 10
        )

    [7] => stdClass Object
        (
            [food] => Dim Sum
            [type] => Touch Heart??
            [rating] => 11 out of 10
        )

    [8] => stdClass Object
        (
            [food] => Ampang Neong Toh Fu
            [type] => Tofu
            [rating] => 10 out of 10
        )

)

BACK TO LAST PAGE