I have recently started using Telescope (http://www.telesc.pe/) from the creators of Meteor for a small project. I am just starting to learn about Meteor, and since essentially database / web server and application stack are collapsed into one framework, I'm wondering what the most efficient way is for me to have an external application (for ex: python script) post and access posts/comments from Telescope. Essentially, I'd like a bot to be able to:
Create posts
Add comments to posts
Pull back a list of posts
Ideally I'd like to access this via HTTP requests (get/post/etc), but am not sure how to do this within telescope / meteor or possibly DB queries. Any help (such as an example API call to create a new post) or the appropriate way to do this using Meteor would be much appreciated!
From the documentation it doesn't look like Telescope has a webservice API and there aren't any plans for it on the roadmap either.
Luckily meteor has a packaging system, which telescope already uses a lot.
So you could make a meteor package that hooks into telescope and exposes webservices for the functionality you described.
Meteorpedia has a good article on how to create rest api's in meteor: here
Telescope has a basic API. You can see a sample response here...
http://meta.telesc.pe/api
And here's the package that makes that happen.
https://github.com/TelescopeJS/Telescope/tree/master/packages/telescope-api
You could copy and extend that package to accomplish whatever you need.
Related
I am looking for way to create simple multiuser Dashboard for OpenStack as alternative to Horizon. Idea is keep Horizon for administrators and manage users in another aplication with possibility to create (with admin confirmation) custom system.
My idea is create a web aplication (Node.js) which would communicate with OpenStack REST API because we need some extra feature (messaging, LDAP/AC Auth).
I also looked for some projects like alternative to Horizon, but cant find anything .
My question is, what is better idea? Create custom solution or use some already created Dashboard(which one?) and only modify it?
Take a look at this open source project:
https://github.com/cyverse/atmosphere
https://github.com/cyverse/troposphere
So its frontend is based on ReactJS and BackboneJS and the backend is the Django and DRF which consumes the OS python client API.
As for your question, it depends. The horizon project has a very good plugin registration service that let you easily create custom dashboards and you don't have to worry about many other details.
However, create a new dashboard on your own also sounds cool but it needs a lot more effort and time than using the horizon.
HTH
I'm looking to start a new WordPress API based project. I want to make sure I'm starting with the best tools at hand so that I'm not changing my mind half way through. What I want to know is; What is the best supported API framework for WordPress? What is the default API that comes as part of WordPress core and how does it compare to other WP API plugins.
I'm leaning towards the WP REST API however I would like to know if the XML-RPC interface 'WordPress API' would alternatively be the right way to go.
Any feedback would be great.
The official wordpress API is still under ongoing development. You can find the old legacy REST api here, which will work, but might be broken in the future: http://wp-api.org/index-deprecated.html
As for the new and improved version 2 found here http://v2.wp-api.org/ this is the version that will be supported and used in the future. I would recommend using this API, as there will most likely not be any huge breaking changes in the future, and this is being actively maintained and developed by a considerable amount of contributors.
There's still a lot missing from the official API, but they're working away on these issues as we speak. In it's current state, it's still quite powerful.
By default WordPress come with REST-API. If you don't want to use WordPress REST-API then You can use API-Framework and access the wordpress functions.
There are small api framework like slim api framework, fat-free api framework you can use for API's.
I need design a dashboard for my meteor app. I need obtain profiling data: collections, publishhing, client subscriptions, etc
Is it possible ?
Of course it is possible, Kadira has done just that. There is also meteor-analytics package, more info on that in this video.
All the meteor samples I've seen have been mongo based. How do I plug another data source into meteor, eg my own custom REST API?
Well, REST has nothing to do with the type of database you using (relational, or something else, like Mongo). You can implement a REST api while using Mongo.
According to this SO answer (couldn't find it in the docs though):
You can substitute another database for MongoDB by providing a
server-side database driver and/or a client-side cache that implements
an alternative API.
I am guessing this is probably not the route you would like to go. That being said, if you are interested in building out a REST api with Mongo you can look on the atmosphere site for helpful packages. Example: Collection-API
Is it possible for Meteor to use RESTful db driver instead of Mongodb?
I have started studying Meteor and I want to use it in a project I am working on. The problem is that this project uses MySQL. I want to keep using Mondb syntax for CRUD operations but instead of using the Mongodb database I want to use RESTful for a PHP web service.
For example, when I do: Albums.find({'name': 'Atom heart mother'}) I want Meteor makes a GET request to http://server/web_service.php/albums/?query={'name': 'Atom heart mother'}
I don't care if Meteor is still using mondodb for the session, app state and some other stuff.
Thank you people, and sorry if my english sucks
For the moment, Meteor can't be used with SQL directly - the best try at this so far is the meteor-sql smart package, but it's been inactive for a good while. And the meteor roadmap doesn't make SQL integration a priority.
The meteor iron-router does allow server-side routing, so you could potentially link your Mongo calls to server routes this way... but wiring this up to Meteor's real-time data might be tricky.