Insert data in to 4 endpoints via one request api in fileupload feature loopback4 - file-upload

I have uploaded the files using multer disk storage in loopback ,those details i want to create the entries in 4 different tables via one api request .Could you please tell me how we can achieve this ,Pls share if you any reference links ,Thank you
I dont how to do that , could you please tell me the way or share me any reference links

You can achieve this by using multiple repositories in one request like this:
await this.firstRepository.create(data);
await this.secondRepository.create(data);
this.thirdRepository.create(data);

Related

Are there any ways to update off-chain metadata attributes or property of a solana metaplex nft through api calls?

I know there is a specific instruction pre-written on metaplex package that allow us to update on-chain metadata of a NFT, but I couldn't find or figure out a way to update off-chain data through api call from either frontend or backend.
I believe this can be done through a service like AWS S3, but I am wondering if there is a better way to achieve this goal
Questions:
So, 1) I want to ask is there a better method to update off-chain data through AWS S3 bucket, and 2) If so, could you explain how? 3) If not, could you explain how can I update json file on S3 Bucket through api calls from my frontend or backend.
Thanks!
Off-chain metadata is not part of the Solana Network so there are not any function/command that allow you to change data inside a offchain object.
What are your options?
You can change the onchain pointer to the offchain link to another (Metadata account has an uri field inside the onchain data that you can change to any other uri using metaboss for example). This is the normal option if you are using an storage like Arweave, because arweave stored files are unmutables.
If you are using something like S3, the way to update the offchain data is creating a backend that allow you to interact with ur AWS storage and change the data that you want. This will affect the NFT that has the onchain pointer to that offchain file, so you dont have to run any onchain update, just need to create a backend system that allow you to interact with ur AWS files.
If you wish to have Dynamic Metadata you can check out Cardinal.io as Well. Link

How to get a specific datasources from Grafana API without knowing the id?

I use the Grafana API to create a lot of datasources (dynamically) so I don't know their ID. Now I want to delete a specific datasources from the API so the method is:
Get the specific datasource
Take the id from the response
Delete this datasource
But I can only search all datasources because I don't know the ID and then I'll need to iterate over each datasources and search the one with the same name + ip ? there is no other solution ?
http://docs.grafana.org/reference/http_api/
Seems like you have an old docs page.. How did you find that? I want to make sure it goes away :)
The new http docs contains an api endpoint for getting datasource by name.
You can also delete datasource by name
DELETE /api/datasources/name/:datasourceName
But we currently do not support deleting by ip + name

How can I obtain an API-key for my Fusion Tables

Yep, newbie question here, but it's bothering me for some days now, trying to read all the docs on google developer site, but I'm spinning in circles.
I've created a Fusion Table and set the access to 'public' and got an ID.
According to Goolge I should have an API key to access the data from a REST-call. Google suggests:
Go to the Google Developers Console.
Select a project, or create a new one.
In the sidebar on the left, expand APIs & auth. Next, click APIs. In the list of APIs, make sure the status is ON for the Fusion Tables API.
In the sidebar on the left, select Credentials.
I can do that all I've got an API-key, but how does this relates to the Fusion Table I've created? Can I use that API key for
this is really simple API key give the ability to do the most of mysql request type SELECT,INSERT,UPDATE,DELETE using GET and POST also PUT request , for GET you can use the navigator for that but the most effective way for your case is the use of curl librairie for php or jaira for java ... so you can send post or put request with a simple script.
So, what you can do with fusion table is automating the process of manipulating data and the option to share those data with someone else.
Edit: procedures changed since this post. Your mileage may vary
Head to the Google Developers Console
Create a project
Under Explore other services click "Enable APIs and get credentials like keys"
Search for Fusion Tables
Enable Fusion Tables API as a service under APIs & Auth --> APIs
You probably want the browser key. Grab the API key.
Happy Mapping...
API-keys are not related to specific Fusion Tables, they are related to projects.
You may use the key to request data from any public and downloadable FusionTable(not only your own Tables ), the key basically is used to identify your project(google-account) .
So when you have problems with requesting data from a public table, check if the table is downloadable too(click on the table-name on top-left->reuse access->allow downloads ).

List of all companies on AngelList via API

https://angel.co/api/spec/startups
What would the best approach for hitting every company that is listed on AngelList? My first guess would be to query all the numbers up until 250k, the number of companies on angelList, using this endpoint https://api.angel.co/1/startups/45435
There surely has to be a better way of doing this though.
Yes it is possible via their API. And the API endpoint that you have mentioned in your question is the correct one. I have written a PHP component to achieve this. You can use this exporter application to download the start-ups data for each country into a CSV file : AngelList Data Exporter
I hope this helps you.
Angel.co does not expose its api anymore. So you have to parse the website to get any data.
Also a quick google search would give you a few websites which have different datasets from angel.co website.

Multiple ajax request at a time Sencha Touch

Can anybody help me about this . I want to load multiple xml url's from a single store .i can do it if i use different stores for each request but it will make my code heaviear .can any body help me /
Thank You
You could send several Ext.Ajax.request() and just append the resulting data to your targeted store (usually configured with memory proxy).