I'm using latest episerver 11 CMS. Is it possible to expose Service From Episerver ? If yes ...Kindly suggest. I need to expose episerver content as service.
Numerous ways, but you can add the Content Delivery API NuGet package: https://world.episerver.com/documentation/developer-guides/content-delivery-api/
If you're using EPiserver FIND all the content is already index and ready to be shared. ContentDeliveryApi just takes that data and outputs it in a meaningful way. It also requires minimal effort. You can always create your own restful Web API and share whatever content you require
Related
Currently we are using DNN to implement and manage our company websites. Therefore we own several websites and one 'head'-website. Each of the sites contains its own DNN installation. For creating news we are using the 2sxc module.
Now we have the following tasks: If a user creates new news in one of the websites, we want to export them automatically to
another installation of DNN (to the 'head'-website)
another system (self developed application)
So is there any opportunity, e.g. an API or another module to realize that?
Thank you very much for your answer in advance!
I would consider doing this another way.
Create a new installation or site in which you create and store all news items. Add an RSS feed or a webapi to this site, and create methods such that other sites can grab news items from this site.
Modify your other sites to use the webapi (or RSS feed) from the news source for their displays. This should be quite easy for the sites that use 2sxc. You'll just need to change the data source to get data from the webapi or RSS feed.
This will eliminate issues of duplicating data, etc.
If you want to reduce development, you could get a copy of DNN Sharp's API Endpoint module(https://www.dnnsharp.com/dnn/modules/custom-dnn-api-endpoint). They have pretty good documentation, and YouTube videos to walk you through the creating of endpoints.
2sxc has everything you need :)
Your best bet is probably the REST API to access the items (see https://docs.2sxc.org/how-to/webapi/webapis.html and https://2sxc.org/en/learn/rest-for-javascript). Just activate some permissions and you can get them from anywhere. Here's a basic recipe to configure the permissions: https://azing.org/2sxc/r/k0YbVYXO
You can also create queries (like to only give the the last 5) and set permissions on that, using https://azing.org/2sxc/r/BE0HbDwA.
This blog post may also help you: https://2sxc.org/en/blog/post/releasing-2sxc-8-10-public-rest-api-visual-query-and-webapi-shuffle-datasource
I have a Drupal 7 site and I want to create a mobile application that will retrieve data from my Drupal site and will also create content of a specific content type.
This content type is very simple. - It contains the following:
* A title
* A body (long text)
* A picture (an image which has to be uploaded to the Drupal site).
I see that there are quite a few modules : restful, restws, services and more...
Which modules do you recommend for my scenario ?
I have used RestWS and Services modules.
RestWS is a simpler module providing CRUD operations for all Drupal resources (nodes, comments, users, etc) built on Entity API.
Services module provides far more functionality but may be overkill for your case. Beyond the functionality provided by RestWS it also provides support for message-oriented or RPC-style web services like SOAP, XML-RPC.
You can also configure your own 'service endpoints'.
If your requirements are simple enough then RestWS may be the most light-weight option, however if you need more configuration or customization options then Services will be the best choice.
We currently have our API set up in azure and use deployment slots which each have their own app settings. For example, on our live slot we set our connection string to the live database. On our dev slot we set the connection string to the test database.
So, I have been tasked with doing something similar with our SPA. I created it using .net core and angular. Currently it has a constant set up:
.constant('apiUrl', 'https://ourlive.api.com')
I have a few set up and I just comment out the ones I am not using. What I have been tasked with, is putting these into the application settings and using deployment slots for different URLs. For example, the live slot will use the Live URL and the Dev slot will use the Dev URL.
I read that you can do this using npm but this isn't an option for us because we are using .net and the npm doesn't seem to work like that. Is there another way we can read the application settings?
Per my understanding, your scenario is a purely HTML + angularjs SPA, although they are running in a .NET core runtime. And your requirement is that you want to get the slot application settings in your SPA application. If I have any misunderstanding about your structure, please feel free to let me know.
You can try to leverage the .net core runtime to get the application settings in slot, and expose as an RESTful API for your SPA application.
And in your SPA application, you can create a server, to call your .net core's API, and you can inject this server and call this api when your SPA bootstrap in and keep the settings in $rootscope for your entire SPA application.
For slot application settings, you can refer to https://learn.microsoft.com/en-us/azure/app-service-web/web-sites-staged-publishing#configuration-for-deployment-slots for more info.
We are developing a java based web application. This application needs a commenting functionality. The commercially available commenting services (http://aboutecho.com/ or http://www.livefyre.com/ etc) are not inside my budget. Can I use Drupal's commenting functionality with my Java application?
Am afraid there are no out of the box solutions in drupal that am aware of.
But its is totally possible to use drupal to power your java application's comments. Am afraid you would have to do some custom coding to make it happen.
Install drupal 7 and a contrib module called services. By installing services you can extend drupal's resource as services resource. I recommend enabling a REST server (a sub module for services) and using it to communicate with drupal.
Integrating RESTFUL api in my application.
I've to use restful services in my new project. I'm using CakePHP 2.0.6
I do not want to create a restful services. I've to use restful services.
I want to know is there any ready made component is available in CakePhp to read restful services.
I want that component to serve me the output based on my services by doing the rest in the background.
Additionaly if the component is able to log it then it will be well and good.
A REST API is more a concept than a standard set of protocols, therefore there is no uniform way to interface with the APIs of different providers. Twitter has its own REST API, while Facebook provides another.
Most big webservices provide PHP classes to simplify interfacing with the API. For Twitter there's a third party library called TwitterOAuth and Facebook provides a PHP SDK. These can be loaded as Vendor files in CakePHP. See an earlier answer of mine regarding the loading of vendor files or this older post related to the 1.3 branch of Cake, but still relevant.
Several Cake developers have developed plugins for Cake to interact with popular webservices like the Facebook Plugin by webtechnick. Whereas loading vendor packages is the framework's equivalent of including them like you would in a plain PHP script, loading plugins is a bit different and might simplify things even more (or make them more abstract). The Cake manual entry on plugins has more information.
I've found a PHP Class from http://www.phpclasses.org Which is looks like taking care of most of the REST API part, And it worked for me for my purposes. It has got nice example file which will demonstrate how to use that class.
I've converted this class into Cakephp component. Here is the URL to download the class.
http://www.phpclasses.org/package/5480-PHP-Send-Web-services-requests-to-REST-servers.html
Check out CakePHP's HttpSocket utility. I have not used it yet but I think it's just an API for cURL which sounds like what you need. http://book.cakephp.org/2.0/en/core-utility-libraries/httpsocket.html