Is Meteor an option if I need an additional REST API?

I am going to write a web application that should be CRUD accessible from both web applications and mobile applications. For the latter, I am definitely committed to the REST API. Can this be realized with Meteor.com? Is it possible to use Meteor only for the Internet and the second REST interface to talk directly with mongo? Since the meteorite client is listening to changes in mongodb, this should not cause conflicts, should it?

+13
rest meteor
Jun 20 '12 at 17:12
source share
3 answers

As of 2015, check out Gadi’s answer to the Meteorpedia entry on the REST API and krose’s answer on comparing REST API packages Discussion of minimizing the REST API to the kernel on Hackpad . This question is a duplicate of How to open a RESTful service using Meteor , which has much better answers. - Dan Daskalescu

Old answer (2012) below.




To add RESTful methods on top of your data, check out the Collection API written for Meteor:

https://github.com/crazytoad/meteor-collectionapi

Regarding authentication to access the database, look at this project:

https://github.com/meteor/meteor/wiki/Getting-started-with-Auth

Both of them are certainly infantile in development, but you can create a RESTful API and easily integrate it with your mobile native client.

+15
Jun 23 '12 at 8:01
source share

There are many duplicates of this question. I made a complete record of this on Meteorpedia, which I believe covers all the problems:

http://www.meteorpedia.com/read/REST_API

The message checks all 6 options for creating REST interfaces from the highest level (for example, intelligent packages that process everything for you) to the lowest level (for example, to write your own connectHandler).

In addition, the message is distributed when using the REST interface - this is the correct or incorrect operation in Meteor, refers to Meteor REST testing tools and explains common problems, such as CORS security problems.

+3
Mar 24 '14 at 6:41
source share

If you plan to develop a production application, now Meteor is not an option. It is constantly changing, and there are many more common functions that it must support before it is ready to use, which will be quite lengthy.

For your question, someone already asked and answered the question about support for downloading files in meteor (also contains information related to HTTP processing).
How can I handle file upload using Meteor?

0
Jun 20 '12 at 18:55
source share



All Articles