Sha256: e8bddc139976bd3e95c6d625d711fc39fb9cc3aa20d0aa2f929b121c2ca84fe4

Contents?: true

Size: 833 Bytes

Versions: 57

Compression:

Stored size: 833 Bytes

Contents

#Rest Service
This is the RESTful network request service. Designed for small payloads of RESTful network requests.

#Options
  * `base_url` - The url like `"http://services.my_host.com/"` for the path to be based on. Must include ending slash.

###Info to start a request
```js
var info = {
  path: "/user/register",
  params: {
    my_param_0: "test",
  }
}

Request("<service name>", "get", info);
```

You will then receive the event `rest_res`.

For sucessful requests, `rest_res` will be sent as an event. This event
will contain `path` and `res` where `path` is the `path` given in th
request and `res` is the results of the request.

###Globals
  * `rest_in_flight` - A hash that maps `rest_in_flight[tp_base] => bp` where `[bp, path]` is the requesting entity for the original request and
      `path` is the original path.

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
flok-0.0.63 docs/services/rest.md
flok-0.0.62 docs/services/rest.md
flok-0.0.61 docs/services/rest.md
flok-0.0.60 docs/services/rest.md
flok-0.0.57 docs/services/rest.md
flok-0.0.56 docs/services/rest.md
flok-0.0.55 docs/services/rest.md
flok-0.0.54 docs/services/rest.md
flok-0.0.53 docs/services/rest.md
flok-0.0.52 docs/services/rest.md
flok-0.0.51 docs/services/rest.md
flok-0.0.50 docs/services/rest.md
flok-0.0.49 docs/services/rest.md
flok-0.0.48 docs/services/rest.md
flok-0.0.47 docs/services/rest.md
flok-0.0.45 docs/services/rest.md
flok-0.0.44 docs/services/rest.md