Meteor Cheatsheet Http Rest

meteor-cheat-sheet

// Meteor - HTTP / REST:

Anywhere: HTTP.call(method, url [, options] [, asyncCallback])  
Anywhere: HTTP.get(url, [options], [asyncCallback])
Anywhere: HTTP.post(url, [options], [asyncCallback])
Anywhere: HTTP.put(url, [options], [asyncCallback])
Anywhere: HTTP.del(url, [options], [asyncCallback])

// options: content, data, query, params, auth, headers, timeout, followRedirects

The best package to use to implement a REST API depends what your anticipated 
use cases are. If you want pure REST endpoints, you could look at express. If you 
want REST endpoints which provide an alternative way of accessing publications 
(for example), then simple:rest is simple. If your use case is more complex, you 
may prefer nimble:restivus. More complex still and you should look at centiq:crud4

https://atmospherejs.com/centiq/crud
https://forums.meteor.com/t/best-nimble-restivus-or-simple-rest-large-meteor-api/29997
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License