how to utilize Sharepoint Search Query API using REST endpoint in Java? - sharepoint

To search for list items across multiple web sites in a SharePoint site collection,earlier we've used SPSiteDataQuery class and exposed as a WCF Service endpoint.
Now,we've to use custom REST endpoint in a provider hosted application.Is it required?As search Rest api's are available now("http://server/_api/search/query?query_parameter=value&query_parameter=value"),can we directly use the api in Java?

Related

SPFx web part with CDS

I am looking for help to create SPFX web part where I want to access CDS entities and perform below actions
Retrieve entity records
Add record
Update record
Delete a record
You can use the Web API web services to get CDS data.
For authentication an Azure AD app will need to be registered like mentioned in this documentation article.
And for executing the api calls from the SPFx web part the AADHttpClient library can be used like mentioned in this documentation article.

Create a developer portal/APIGEE+ WORDPRESS/

There is an existing developer portal in Drupal that uses APIGEE to give 3rd party developers access to remote API and documentation. The portal is not configured and costumized correctly so for this reason the portal has many problems.The website has its own database but also uses APigee db.
My task is to create a website by using cms/probably will be wordpress/, migrate the users and the forum from the existing database and establish connection with the API provider.
The idea is not to use the dev portal provided by APIGEE and DRUPAL but just make my own and use some of the things provided by Apigee.
Could tou give me some directions is that possible and where I need to dive in more?
Thanks a lot!
All the developer management and key management features in Apigee is accessible using REST APIs (protected by role based access control aka RBAC)
You can always develop any portal or UI of your choice and invoke these APIs provided by Apigee to implement features such as
Creating a new developer
allowing the developer to subscribe to API products
allow the developer create and manage his own API Apps, Keys
allow the developer to view App analytics etc.
You can follow the API documentation here:
https://docs.apigee.com/api/apps-developer

SharePoint web hooks without Azure?

Is it possible to create SharePoint web hooks without Azure?
I have a requirement where I need push notifications from a SharePoint list, I read that SharePoint web hooks can be used to achieve it, but customer doesn't have an Azure account and looking into possibilities where it can be achieved without using Azure.
It is absolutely possible. The premise of WebHooks is that SharePoint Online will HTTP POST to a URL you define when the event happens. The only thing that is important is that the WebHook service you create and register with SharePoint Online has to be accessible to the SharePoint Online service. Without getting into specialized networking arrangements with Microsoft this means your service has to be publicly addressable. Azure is used as a common example because it is publicly addressable, it is a Microsoft product and lots of SharePoint Online customers are also Azure customers. There is however nothing that would stop you from using your own hosting solution.
Here is a presentation on WebHooks: https://docs.com/OfficeDevPnP/1223/pnp-web-cast-sharepoint-webhooks

Call external service from SharePoint Online web part

We are in the process of moving an on-premise SharePoint installation to SharePoint Online. We have a number of existing C# web parts that we need to convert. These web parts currently access some of our on-premise data... we need to get the web parts working on SharePoint Online; however, we're not certain of the best approach.
We've looked at BCS, but it seems that it is geared more towards synchronizing lists of data via basic CRUD methods. For many of our applications, we are not looking to synchronize lists, we are looking more towards action-oriented methods on a service that can be called on-demand as needed by the web part.
We don't believe the call can be client-side, as the users will often be accessing SharePoint Online from workstations that are not joined to our domain, and we don't want the user to have to separately authenticate to our service (i.e. we want our service to trust only the SharePoint Online backend).
Our ideal setup would be to have our C# code for the web part call into our web service (hosted on our domain, authenticating with a service account from the SPO secure store), passing the current username from the SharePoint context, and getting back a response that the web part can then use for its processing.
But as we understand, the web parts in SharePoint Online are sandboxed in such a way that they cannot make external HTTPS calls via HttpWebRequest.
We've searched for how-to examples or documentation related to our use case, and haven't found anything saying it's possible or that it's not possible. Does anybody know if it's possible for a web part to get data in this way? Is there some other direction we should be taking to achieve this?
In SharePoint online, if you are developing a SharePoint hosted app; You will be able to call external endpoints (EPs) after adding these endpoints in the manifest file.
If you haven't added these endpoint to the manifest file, This means you are not permitting the app to call an external EPs.
You don't need BCS in SharePoint online to call external EPs. Here is a sample on how to do this using JavaScript.
https://msdn.microsoft.com/en-us/library/office/fp179895.aspx
Let me know if you have any other questions.

Is it possible to implement BCS with SharePoint online and External DB oracle?

We want to get the data from an external DB server(Oracle) and add it to our list in SharePoint online(SP-O). Is it possible to do it using BCS? If yes then please give me some tips for that.
Ex: I want to display data to a SP-O list from a database of my local machine/any other server.
I found the resolution of it. I just followed below steps:
Implement a WCF/REST web service to fetch data from DB server. Follow this blog to create a REST service: Create WCF REST Service.
Create an External Content Type using SharePoint designer. Select WCF Service as a data source while adding a connection. Follow this blog to cretae an External Content Type using WCF Service. BCS to create ECT using WCF service as a data source.
Create a list using the External Content Type.
Note: SharePoit site and WCF service must be hosted on same protocol, either on http or https. Otherwise it will give an access denied error.

Resources