Hoppscotch APIs - postman

I am looking out to see if any open apis are there to build hoppscotch Collection from the existing collection JSON.
I need to migrate the postman collection to Hoppscotch collection.
Hoppscotch is currently giving the option to upload postman collection JSON but I need an API to do the same.

Related

Connecting REST API to Tableau

I am trying to use REST API to connect data into Tableau Desktop. Which option do I select when choosing the datasource when opening Tableau Desktop? I have tested the API in Postman, and it successfully connects.
The REST API is not a data source that can be accessed from Tableau Desktop. To use the REST API you have to export the data from an API call to csv or other flat file. Then you can connect Tableau Desktop to that file. You can automate this using Python. You can also export directly from Postman. At the top of your results after you run your GET, download the file from here
I do strongly recommend you do this all in Python rather than Postman though so you can consume the json file much more easily with pandas. I would also recommend looking at tableauserverclient within Python rather than using the API directly. tableauserverclient is more limited than the API but will likely have the functionality you need.
Tableau cannot connect to REST API directly.
One way is to use Web Data Connector, BUT you have to build a web page for each REST API and paste the web page link in Web Data Connector.
Alternatively, you can use ETL tools that support extracting data from API and loading it to Tableau. (I personally recommend Acho. Its API connector is very useful)

How can I hide an API key in a GitHub public repo?

I am doing a simple front-end project where I (or a user) make an API call to the openweathermap api, fetch weather info and display it on a website.
Simple HTML, CSS and vanilla JS
So I want to keep the repo public & host the site with GitHub Pages... but my js file contains the API key which is required at runtime.
Extra Info:
(all this I found when I searched)
I know there is a way to keep an API key in a GitHub secret, then reference it in a yml file as an environmental variable in GitHub Actions.
But how can I put that secret in js code at runtime for any user who access my website?
Please note that what you're attempting to do is not secure. Even if there was a way to get GH Pages to inject the secret API key into the js file at the time of the request, every web client would then have a copy of that js file with the cleartext key embedded.
You will need some sort of minimal backend which stores the API key securely and relays calls from your static web page to the openweathermap API.
There are many ways to set up such a backend. The older question linked in the comments discusses some approaches. Note that nowadays, you could use a serverless FaaS service such as AWS Lambda or Azure Functions.
This is a perfectly valid question by the way and you're certainly not "too dumb". Good luck!

Testing RingCental APIs with Postman

The RingCentral API Explorer allows to select the app and start testing all the APIs, but what I prefer is testing the APIs with Postman as it is easier and flexible.
While I am testing the APIs with Postman clients, I was look if there are any ready-made Postman collection available which I can simply import and start testing the RingCentral APIs with minimum changes.
I haven't found any available collection for RingCentral APIs in the net. Is there any existing API Postman collection available which is been used by RingCentral developers and tester?
There are some postman collections available, but not sure if those are updated. However you can try these following importing to your Postman client:
https://github.com/grokify/ringcentral-postman
and
http://ringcentral.github.io/api-specs/specs_engage_engage-digital_postman-2.0.json
ref: https://developers.ringcentral.com/engage/digital/guide/postman
You can try importing into your postman and start testing, create different environment.
Alternately there is also Swagger 2.0 to Postman 2.0 converter which will convert Swagger collection to Postman.
You can find the reference and Swagger collection here:
https://community.ringcentral.com/questions/629/postman-collection.html
Navigate to the API reference page. It looks like this:
Fill out the information. In this example you'd add a person ID.
Click Try it out and follow the instructions.
The cURL command on the right will automatically update with your auth information.
Open Postman.
Click the Import button, located on top left corner.
Click the Raw Text tab.
Paste the generated cURL command in the text feild.
Postman will automatically generate the authorization headers and body. Once you do this once you can use it as a template for all other API's using Postman.

How to programmatically generate a collection from an openAPI / Swagger endpoint?

Generating a Postman collection from an openAPI / Swagger documentation JSON file is already possible using the Postman API Client (a desktop app).
However, for purposes of programmatically modifying an existing collection using the NodeJs-based Postman SDK I'd like to be able to automate the process of generating a postman collection.
Whether that is via a command line tool (I haven't found any such tool), Postman API REST request (I haven't been able to find out how) or otherwise, does not really matter.
As long as it is possible to do without pressing a button in some app.
Is this possible at all?
Postman uses this module in the APP to convert from OpenAPI to a Postman Collection.
https://github.com/postmanlabs/OpenAPI-to-Postman
This should provide you with a programmatical way of doing this outside of the app.

AWS Amplify GraphQL API, how do I add onto the premade API calls?

Is there a way to add on the premade GraphQL APIs that Amplify autogenerates? For example, I have a listTasks query call but I want to add more input fields. Does Amplify provide a way to do this easily? Right now I just copied the query and put it in my React component and modified the query.