How do I create an app on QlikSense using QRS API? - qliksense

We just installed and configured Qlik Sense of a machine with all the necessary steps and everything is correct, because we tested using the QRS API about endpoint ( /about ). We are using Java so the QRS API it's the desired option
My question is the following : when a user makes an account into our application we want to create for him an app in Qlik Sense with his username using QRS API but the documentation isn't very clear about the endpoints and data we need to provide.
https://help.qlik.com/en-US/sense-developer/April2020/Subsystems/RepositoryServiceAPI/Content/Sense_RepositoryServiceAPI/RepositoryServiceAPI-App-Upload-App.htm
Here it says that we need to provide a QVF file but we don't know where we should get that file
Can you please provide us with a step by step guide on how to achieve this as we are new to this platform ?

The Engine is responsible for the app creation. The Repository can only import already existing apps (qvf files)
Most of the Engine API is websocket JSON API but Qlik is exposing small subset of the Engine API as REST as well
In your case I think you can use POST /v1/apps method to create an app
If you do prefer to use the websocket API you can have a look at Create an app example

Related

Is it recommended to create an API for internal services?

I'm working on a project that consists in an python script that get data from an API and calculate things based in this data. The goal is to get this calculated information to a website. I was thinking in doing something like running this code in the same server as the website host server and posting the data generated in a database, then the website would get the information from the database and display it in the website. However, the front-end developer that is working with me said that would be a better option to develop a REST Api that would return to the website the data calculated in the python script. Does it makes sense to develop an API that will only be used internally? Wouldn't it be another unnecessary factor of complexity, since the data could be calculated, stored and retrieved form the host server without any API?

Can we extract data from Qlik sense through the Rest API?

I have to extract data from Qlik Sense through the Rest api Call hence I have explored and haven't found any solution. is it possible to do the Rest call to Qlik sense app to extract data ?
As far as I know, there is no REST API allowing to access data inside an application.
There is a Javascript and .Net SDK to use the Engine API and thus connect to data .
There is a also various REST API to manage application, streams, tasks, users...
However, if you want to get access to Qlik data, I suggest you add STORE commands in your load script to dump the tables to text or CSV files, making them easily readable after.
Qlik sense does not provide an API to expose the data in Qlik to other applications.
Because we did need this functionality (for instance to expose data from Qlik to Rapid Application Development platforms like Mendix) we developed a custom application that can help. see https://ddcgroup.com/qlik-data-extractor for more info.
With this tool, you can define the rest webservices that you need (including aggregation etc) which can be called to extract data from Qlik.

Hyperledger composer rest api add data not found in composer playground

I have successfully generated composer rest api followed by instruction given by https://hyperledger.github.io/composer/latest/tutorials/developer-tutorial.html finally am getting success message
Discovering types from business network definition ...
Discovered types from business network definition
Generating schemas for all types in business network definition ...
Generated schemas for all types in business network definition
Adding schemas for all types to Loopback ...
Added schemas for all types to Loopback
Web server listening at: http://localhost:3000
Browse your REST API at http://localhost:3000/explorer
and after am adding participant getting 200 response code in api , but the added data not displayed in composer playground, whats the issue in this? anyhelp appreciated
I think there is a problem with your starting a business-network or upgrading a business-network. please ensure that your started network version same as composer-rest-server API version shown on http://localhost:3000/explorer/. If there is an issue then you can do ./stopFabric.sh. and then start your business-network again.
the playground is exactly what it says, a playground. It's a little environment to help you play with models, test them and create a bna from the result, not to deploy a fully working network.
However, if you do want to see some real data then you have to connect it to an actual network using a proper network card. If you use the web version then that's not connected to anything real.
So, connect the playground to the same network card you used to create the composer rest api and then you will be able to see something.
This being said, the best way to check your data actually exists on the ledger is to use the composer api you used to create you assets.
Every asset endpoint accepts all the verbs you need to work with. You used POST to create an asset, now use the GET method to check the data on the ledger. if you look at the swagger interface, you will see all endpoint, all verbs they accept and the data models required

Change Magento 2 REST API

Hey guys I wonder if anyone can help with this.
Now I am facing a problem at my company. We are developing a Magento 2 Community multistore for our customers.
The idea is to have several stores in the same Magento 2 installation, where each store is for each independent company. The problem is the integration with our ERP system. With the API REST we have full control in the installation, even if we are not with the admin master credential. if we run commands like this in postman: https://magentostore.com/rest/V1/orders?searchCriteria
we have all the orders in installation, all stores. So the companies with their credentials would have the same control and it is a very bad problem of security. The stores would have access to data from each other.
We have tried extensions for advanced permissions like Aitoc and Amasty but it's only works at a frontend level and does not take any effect in API REST. We know that Magento was not made for this kind of thing so my question is:
is it possible to change the API REST to filter the queries by store? and where can I find these API REST queries?
I'd thank you so much.
So you can override api calls using webapi.xml file in your module, Just point it in your service interface and change acl if you want. In your service interface inject the original one and add some your filter before calling original.
The second approach to write a plugin on OrderRepositoryInterface and add filter there (but first solution is better because this service is used not only in api so you may do not want to restrict all calls)

Using Local storage and REST adapter at the same time?

I'm pretty new with an Ember so for the start I have a noob question - is it possible to use Local Storage and REST adapter at the same time?
For example, if I want to do a login via API, if login is success the server will return an API key which is used for later communication with a service. Is it possible to store that information locally on the client and to retrieve it when necessary but also, for other models, to use REST adapter?
If this is not a good way to handle such case, which one would you propose and is there any kind of example which would me lead me in the right direction?
Thanks to the people from #emberjs, I found out that there is a wonderful ember-auth authentication framework for the Ember.js which does what I need.