Wordpress plugin to connect to a REST API? [closed] - json

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
Let's say I have a RESTful API running on a server somewhere, as well as a separate, but related, Wordpress site.
I want to have some pages on the WP site that show data on WP pages that has been retrieved from the REST server (in JSON format), and allow the user to view and/or edit the data on WP pages.
For example, let's say I have, as a REST starting point, an API that returns a list of books owned by a user. I want to display the list of books, allow the user to click on a book link and go to a page that displays the details for the book.
Then if the user enters "edit mode", it lets him/her edit the data and POST/PUT it back to the server via the REST API.
Is there any WP plugin that lets me create pages that display and edit information like this?
I would expect that for each type of entity I could enter some metadata to indicate what to expect in the JSON and how to display it for viewing or how to build the form for it (like iPhorms does).

So WordPress has some built-in support for AJAX queries, both from the admin panel and in the user-facing pages.
I don't fully understand how it all works yet as I am totally new to WordPress coding, but this seems to be what I want:
http://codex.wordpress.org/AJAX_in_Plugins
Thanks to moimikey for mentioning WP's ajax ability.

Look at this URL, it will solve your problem
https://developer.wordpress.org/plugins/http-api/

If I understand your post correctly, perhaps this would do the trick.
http://wordpress.org/extend/plugins/json-api/
It has 3 controllers:
Post:
create_post
Core:
info get_recent_posts get_post get_page get_date_posts get_category_posts get_tag_posts get_author_posts get_search_results get_date_index get_category_index get_tag_index get_author_index get_page_index get_nonce
Respond:
submit_comment

I am looking for similar functionality (I want my Wordpress page to render/update data retrieved from Spring REST CRUD repository) and I couldn't find anything.
I ended up writing my own generic shortcode plugin for Spring REST data repositories, which I will be happy to share once it's completed.
You can also write your own shortcode plugin based on the following tutorials / blog posts, it is fairly straight-forward:
http://pressupinc.com/blog/2013/09/making-first-shortcode-plugin-wordpress/
How to parse json response from CURL
Call a REST API in PHP

Related

How well does Sitecore 7 lend itself to presenting external JSON data? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm asking because I am not sure what kind of person we'll need to hire (ASP? Sitecore? Angular? JQuery) to implement the following for us:
Our school is looking to make data on courses (JSON format, about 600 courses) available as an “online catalog.” The static info (programs information, resources, etc.) will be hosted in Sitecore 7.
We’d like to see the online course catalog closely integrated with the rest of the site, so we’re looking for best approaches on how to do that.
Some manipulation of the JSON data is required: course detail pages should be simple enough, but we’ll also need to have course listings (not necessarily displaying all 600 courses at once, in one long list, but segmented by programs, class formats & locations, etc) as well as a “course search” functionality.
Would Sitecore do that well enough out-of-the-box, or would it be better/easier to go with something like Angular JS on top of Sitecore?
Please ask me for additional info if I had left something important out or if anything is unclear.
I agree with Dijkgraaf comment but to provide you with answer; Sitecore is suitable for your requirements but is a framework which means out of the box it won't meet your requirement so you will need a Developer who knows Sitecore and by extension .NET (Sitecore is built on .NET).
These developers will also know how to work with JSON, most likely serving it up from Sitecore via a .NET technology called Web API. The JSON can then be manipulated with Javascript or AngularJS. It is not as common for Sitecore developers to be familiar with AngularJS however.

Open source platform/software to develop app backend [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
We are going to develop some mobile app for one of our clients, and we are defining the technical solution for the backend server.
Basically, we need to implement a backend providing REST apis for the apps. The apps will need features such as user authentication, handling of user profiles and user contents. The backend should also expose a web administration interface and allow to manipulate some of the app contents in a CMS-like way.
My client specifically wants to avoid baas solution (like Parse), and I am trying to find some open source software able to provide some of the features out of the box, to avoid writing everything from scratch, and develop the other parts. We can use cloud services such as AWS for hosting the backend.
What existing platform/software would you advise?
Here a a few options to look into:
DreamFactory: http://www.dreamfactory.com/
Loopback: http://loopback.io/
Apache Usergrid: http://usergrid.incubator.apache.org/
BaasBox: http://www.baasbox.com/
Not sure if this answer your question. Did you come across other options?
I am currently using apache usergrid for one of my projects and consider it powerful on following areas;
Authentication & Authorization (also social login)
Activity creation and activity feeds
Asset storage (local or aws s3)
Dynamic collection creation
Search on collections and support custom query language (via elastic search)
But it doesn't support push notifications. If you need that out of the box, you may have a look at BaasBox. It seems a good alternative to usergrid.
I didn't find documentation adequate for usergrid (i mean for internals not api usage), so you have to dig source code to find out answers.
If you are developing social application (user activities, feeds, comments, likes) it is hard to update counters in a document (e.g. updating comments and likes count). It is not natively supported. You may sync increments on the same document using a queue like kafka.

REST api for database driven mobile app [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am developing a django web app(just for fun/learning) where users can sign up, ask questions on a certain topic and provide answers. It is all working just fine but I want to learn mobile app development so looked into moving that web app to be a mobile app using phonegap or something similar (recommendations welcome).
From my research it seems that, in order to serve up the data to the mobile app, as REST API would need to send the data as JSON which would be displayed in the app, at least for Phonegap anyway.
Would I be right in thinking that converting the django app to just be a REST API which serves the JSON to the app is the right way of going about things or have I gotten the wrong idea? (I am just learning the concepts of REST apis so apologies if that makes no sense).
Perhaps another framework would be better for creating the API or another approach all together?
I am not tied to any language or framework as I am just using the project to learn.
Thanks for your time.
For a PhoneGap app you don't want to use Django to render the HTML, you just want the PhoneGap app to authenticate and communicate to Django via an a web service (here a REST interface, in JSON format e.g.)
This is one possible way to implement REST server on Django: http://www.django-rest-framework.org/

Create editable html/css website [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Let's say I have a website with some content in it:
<p> Here is my content </p>
When administrator logs in, he wishes to edit this content. Which programming/designing tools should I use to add this feature?
You would need some kind of dynamic language. Something like PHP, Python or similar. This would give you the tools to build a secure area for an administrator to log in and make edits. You'd then need to use this language to write some function to display the pages, create the URLs, update menus etc etc.
You would also need some kind of database like MySQL or PostgreSQL for instance to store the content of the pages.
All in all it doesn't seem like a worthwhile idea to roll your own script for this. We have a saying in web development - "don't reinvent the wheel". Wordpress would be my recommendation for you. It's not my favourite CMS but it is incredibly well documented - for beginners in particular - and it'll give you everything you need to get going. It also has an option were an administrator could log in and then use the front end of the site and just click edit when they want to make a change to the page they're on.
For editing content and enabling user login you can use PHP. You can code your own site/blog or you can use scripts that already exists. You should read more about PHP / MySQL on w3schools or some similar site.
Things you should learn that I recommend you :
PHP
mySql
Wordpress
Visit w3schools.com for more details about PHP and MySQL.
Storage. Normally, you will need to have DB where you will store all the date, user access details, e.t.c. Sure, this can be done via text files (html, xml, txt e.t.c.) but this doesn't make much sense.
Editing You need some kind of editor if you don't want your administrator to edit plain HTML. You can try any of WYSIWYG editors.
All other things You might need in the future other things connected to editing (save labels, use keywords, insert images e.t.c) - all of this is already done in any CMS.
According to all of this info I would suggest you to take on of ready-to-use CMS which can hold all of these features from scratch (e.g. WordPress, Joomla or any other).

Open source CMS that can be plugged in on the back end of an existing site? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I have a problem to solve which I think is relatively common. I have an existing web platform, built on a PHP or Java framework, which serves multiple sites. I would like to add a CMS back end to enable the company's employees to create, edit and publish content using an intuitive interface. However, I do not want the CMS to manage the front end of the site, I only want it to create the content in a database or XML repository, and hopefully deploy the content to multiple environments (preview, staging, production, etc). Our priority is a clean and stable editorial interface for non-technical users to edit and publish content.
I can then integrate the content with PHP or JSP templates on the front end, using something like mod_rewrite to identify content IDs in the URL and call content controllers to load the correct content from the repository. There should be no need to deploy any CMS code to the production servers at all. I've done this in the past using commercial CMSs such as InterWoven and Documentum, but now I'm looking for an open-source option.
I am looking at the usual list of candidates, including Drupal, Alfresco, WordPress, Joomla, and also more general frameworks like Django.
Would you recommend any of these tools (or any others I didn't list) for this scenario? Thanks for your advice!
The list you're giving seems nice and diverse. I think you could add Hippo CMS (Apache licensed) to your list, since you don't mind a JAVA framework as your backend. It separates content repository from user interface and frontend applications by default and handles all the link rewriting for you in multiple websites and languages. Since Hippo is targeted at enterprise it works well in a DTAP (clustered) environment. For frontend templating you can use either jsp, freemarker, velocity or gsp.
You can try out the user interface here: http://www.onehippo.com/en/products/cms/try.
If you want to start developing, follow the Hippo trail on http://www.onehippo.org
Disclaimer: Hippo is my employer