/restro.examples

Applications using Restro

Primary LanguageJavaScriptMIT LicenseMIT

Restro examples

npm downloads

Sample applications using Restro (https://github.com/Srdjan/restro)

Apple-farm

To run the example, clone git repo:

git clone https://github.com/Srdjan/restro.examples.git

Go to Apple-farm folder:

cd apple-farm

and then:

npm install
npm start //or: node index.js

Open the browser, and navigate to:

http://localhost:8080/

When the API Explorer loads, go the main entry feld and type:

/api/apples

use create button to create first apple and follow the links :)

JSON format example for 'Create':

{ "weight": 10, "color": "red" }

JSON format example for 'Grow':

{ "weightIncr": 120 }

...

License

The MIT License (MIT)