Skip to content

tjwebb/subroutine.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dependencies

  • node 0.10.x
  • npm 1.3.x

Local Development

  1. npm install.
  2. nodemon web.js

Examples

You can import subroutine.io examples into Postman: http://www.getpostman.com/

  1. Get the subroutine.io Postman config.
  2. Import and check out the examples.

Usage

Create new subroutine

  • Request: POST api.subroutine.io

  • POST Body:

      (function() {
          var message = ["hello", "world", "!!!"];
          return message.join(" ");
      })();
      
  • Response:

      {
          key: "RhBMiz7iKekh"
      }
      

Invoke existing subroutine

  • Request: GET api.subroutine.io/RhBMiz7iKekh

  • Response:

      {
          run_count: 15,
          last_run: "2013-08-26T02:13:01.376Z",
          result: "hello world !!!"
      }
      
  • Run this function!

About

POST a javascript function, GET the result.

Resources

Stars

Watchers

Forks

Packages

No packages published