Java API for Lucidworks fusion - lucidworks

I could not find the java API for Lucidworks fusion, when searched the internet. Is there one or only REST API's are supported in lucidworks fusion?

There are Java APIs which are available for writing plugins. But REST APIs from Lucidworks Fusion can be leveraged and can be used not only in Java, but in any language. That's the benefit of having REST APIs, right? Please go through the documentation of Fusion 2.1 for all the REST APIs.

Related

Does exist a universal tool to describe different APIs (REST, WebSocket, gRPC, custom framework)?

My project uses different protocols to communicate with other services:
REST API
WebSocket (STOMP)
gRPC
own framework build over gRPC.
I need a tool, or a bunch of tools, which allow me to generate documentation for the APIs. In the best scenario, it's a maven plugin that generates a report with all APIs.
We use Swagger to describe the REST API. It has poor export options and needs a lot of annotations in the code, but describes the API well and offer the test machine.
Alternatively, Spring RestDocs (AsciiDoctor) could be used for the REST API describing. It offers a better format for reporting, but we prefer Swagger.
That's all I found for the REST API. But I didn't find anything for describing WebSocket API, gRPC and the custom framework.
I will be very grateful for any help and ideas to solve the problem.

Google Sheets API in C++

Is there a way to integrate the api in c++?? I was looking for a way to read from an online google spreadsheet and I need it to be in C++, but the google available library seems to be outdated and is not recommended to use anymore, what can I do??
There is no official Google C++ API Client.
You have a couple of options:
Embedded another language, like Python, into C++ and use that for the API calls.
Call the API endpoints with your own HTTP methods.
Switch to a language with a supported API Client.
Hope this helps.

API for Google Cloud Platform: gcloud API or Google API Client

I am working with google cloud platform. Learning and trying out a few things like Bigquery and Google Cloud Storage.
I find it confusing that there are two official APIs for all those things: gcloud API and Google API Python Client. In google cloud's "getting started" tutorial, the recommended API is Google API (Python) Client and it seems that the documentation for gcloud api is not very detailed.
In short, to access Google Cloud Platform programmatically,
which api library is better?
Where can I find nice documentation for that?
My answer
I would recommend gcloud API, this choice also applies to other languages: nodejs, ruby.... And then
Explanations
It is confusing, that Google have these two APIs have overlapping functionalities. And it is more confusing that they use Google API Client in their tutorial, while gcloud seems to be a more Google Cloud SDK specific package.
Here is what I found out: on the page of the gcloud API page, there is this FAQ section saying:
The Google APIs Python Client is a client library for using the broad set of Google APIs. gcloud-python is built specifically for the Google Cloud Platform and is the recommended way to integrate Google Cloud APIs into your Python applications. If your application requires both Google Cloud Platform and other Google APIs, the 2 libraries may be used by your application.
Addtionally, the gcloud api is part of the Google Cloud SDK. So it is standard.
Both the gcloud command-line tool and gcloud-python package are a part of the Google Cloud SDK: a collection of tools and libraries that enable you to easily create and manage resources on the Google Cloud Platform. The gcloud command-line tool can be used to manage both your development workflow and your Google Cloud Platform resources while the gcloud-python package is the Google Cloud Client Library for Python.
Based on my experience of using the python and nodejs api, the gcloud api is much more easier to use than the google api client. Here is another question for your reference:
When accessing Bigquery using Python API, what is the difference of using google client API and gcloud
So obviously, for a project working around Google Cloud Platform, using the gcloud API is an better choice.
Documentation
What about the documentation?
The documentation seems not very helpful(especially for rookie programmer like me) if you look at a page like this:
https://googlecloudplatform.github.io/gcloud-python/#/docs/master/gcloud/storage/blob/blob
I found two ways to get more detailed instructions: look for the doc for stable version or go to the github page. For instance:
https://googlecloudplatform.github.io/gcloud-python/stable/storage-blobs.html
https://github.com/GoogleCloudPlatform/gcloud-python
This is the result of the little research I did on it. I am still curious why Google mention gcloud library so little in its tutorials. Anyway, I hope this will help people to get an idea of which library to use, and save some time researching on it.

Is there any solution for generating the restfual api code both for client and server

The functions for operating the restful api is quite same. Is there any project that can generate the source code for different platform such android,ios and backend stuff.
I suggest you to use API description languages such Swagger ou RAML.
After having described your RESTful application with a language like this, you will be able to generate things like server skelekons and client sdks with different technologies and languages. You can even generate documentations.
With Swagger, swagger-codegen will do that. swagger-ui may also interest you for the documentation part.
To finish, I would like to mention the Restlet studio that allows to define graphically and quickly the structure of RESTful applications and generate then the corresponding Swagger and RAML contents. The APISpark plaform provides a mecanism to introspect Restlet applications and generate the corresponding contents with these languages. It also allow you to generate a set of server skelekons and client sdks.
Hope it helps you.
I will suggest you to use Spring RESTful webservices starter kit. Which will manage your back-end with centralized database. Also Spring has its own android libs to communicate with REST Apis.

Generating REST API Documentation from Restlet annotations

The RESTful Web service APIs are implemented using Restlet. I need to generate the API documentation for these. Rather than starting with a separate document, I am evaluating if this can be generated from the source code annotations itself.
I looked at Swagger and enunciate. Swagger seems to be based on the JAX-RS specification. Enunciate looked a little more promising as there is an FAQ that mentions how to generate for non JAX-RS implementations but there is no help.
Are there any tools (or if the community has used any) for generating API documentation from Restlet annotations?
Has anyone integrated Restlet with enunciate for generating documentation?
Restlet now supports the ability to generate either corresponding Swagger and RAML contents based your application at runtime.
Following docs could help you:
For Swagger (extension org.restlet.ext.swagger): see http://restlet.com/technical-resources/restlet-framework/guide/2.3/extensions/swagger
for RAML (extension org.restlet.ext.raml): see http://restlet.com/technical-resources/restlet-framework/guide/2.3/extensions/raml
You can then leverage tools from the tool community to generate your API documentation. You could consider Swagger UI that is a great tool to display online what an API provides and interact with it.
Hope it helps you,
Thierry