How to install postman on the machine which doesn't have internet? - web-services

I want to check web service is working or not using postman but I don't have the Internet on that machine. how can I install postman without chrome webstore?
or how should I check following web service using curl? using post request
http://url of web service
Content-Type : application/x-www-form-urlencoded
key value(which is to be submitted via the body of request)
inputString again
sourceLang eng-latn
targetLang hin
withSuggestions 1

You can simply download as an app from this link
.In this way once installed, you dont have to be on chrome.
Other way is to clone from git repository. From here
https://github.com/postmanlabs/postman-app-support
Then go the extensions in chrome.
Then developer mode
. Click Load unpacked extension.

If you want to install postman in chrome then just go to chrome web store.
Last week, Google announced plans to end support for Chrome Apps for Windows, Mac, and Linux users, over the next two years.
So to install postman as an application just go to this download link

go to the following link as given by akhil mathew and download postman depending upon your operating system
https://www.getpostman.com/apps

Related

OAuth authentication for Google Calendar API with Python

I am writing an application in Python that should be able to create and modify events in a Google Calendar according to the data in a Google Sheet.
As I have almost no experience with these APIs, I am following this simple guide on the Google documentation https://developers.google.com/google-apps/calendar/quickstart/python#. I enabled the Calendar API in the Developer Console of my project and installed the Google libraries as explained in Step 1 and Step 2. When I try to run the quickstart - which I simply copied from the guide - the script correctly opens up a window in my browser (Google Chrome) asking to give permission to my application to access the calendars. When I click on "Accept", however, I get an error page saying that "localhost didn’t send any data. ERR_EMPTY_RESPONSE". No credentials are stored in the ~/.credentials folder, as it should happen according to the script. Moreover, the execution of the script hangs at the point of authentication. Where could the problem be?
After following the Python Quickstart setup guide,
make sure you're running a local webserver like
python -m SimpleHTTPServer 8080
After that my python script ran without a hitch:
console output:
noogui#noogui-dpg:~/Downloads/calendarquickstart$ python calendarquickstart.py
Getting the upcoming 10 events
2018-12-23T11:30:00+08:00 Foo Fighters Concert

Where are Postman collections saved?

Where does the standalone Postman client for Windows save collections when working offline?
To clarify, I want to find where Postman saves collection files to by default when online syncing is disabled. I am not trying to export my collection as a JSON file.
I've looked in %LocalAppData%, My Documents, and Program Files, but I don't see where Postman saves its collection data.
It looks like Postman uses LevelDB. On Windows, I found my Postman DB located at:
%HOMEPATH%\AppData\Roaming\Postman\IndexedDB\
ps: %HOMEPATH% is path for C:\Users\xxxx\
also worth mentioning: %APPDATA% is a shortcut for C:\Users\xxxx\AppData\Roaming\
According to Piere F, macOS users can find it under:
~/Library/Application Support/Postman/IndexedDB
ps: Note ~ is path for /Users/userAccount/
According to David, Ubuntu users can find it under:
~/.config/Postman/IndexedDB
Postman is using Chromium offline storage capabilities because at the end it's a SPA running inside Chromium (Electron technology).
From Postman's top menubar:
Select View → Show Dev Tools
Select the Application tab
In the sidebar, open Storage → IndexedDB → postman - file:// → collection_requests
In windows, postman v9.6.2 I was able to restore collections by pasting the IndexedDB folder in the following path:
\AppData\Roaming\Postman\Partitions\<GUID>\
On Mac: The json files were automatically backed up (/Users//Library/Application Support/Postman/backup-YYYY-MM-DDTHH:mm:ss.SSSZ.json) but it is not documented anywhere.
You just have to reimport them
This support documentation helped me recover my collections after the postman application stopped working.
https://support.postman.com/hc/en-us/articles/360035071313-How-to-recover-my-data-
If you weren't logged in to the app and using it offline or in the
Scratch Pad mode then your data won't get synced to our servers and
stays local to your instance. In this case, try following the steps
below:
Look for the backup files under the following folder:
%appdata%\Postman\​for Windows ~/Library/Application
Support/Postman​for macOS ~/.config/Postman​ for Linux
Backup file names will be similar to
backup-2020-02-26T23-13-43.082Z.json (date or time will be different
for you).
Alternatively, if you just want to look at the collection, you can export it into json format from the collection menu.
We work offline. So for Postman Scratchpad (official offline usage):
On Windows: %HOMEPATH%\AppData\Roaming\Postman\Partitions\
On Mac: ~/Library/Application Support/Postman/Partitions/
Simply backup or share the entire directory when you want to synch.
For the version Postman from Google Chrome extension, you need copy all files from path:
"%LOCALAPPDATA%\Google\Chrome\User Data\Default\Storage\ext\fhbjgbiflinjbdggehcddcbncdddomop\def\IndexedDB\chrome-extension_..."
The files inside path above contains all history and collections from Postman
Linux Chrome or Chromium Postman extension storage path Location
/home/{USER}/.config/chromium/Default/Storage/ext/fhbjgbiflinjbdggehcddcbncdddomop/
Thanks.
If you are using a snapped Postman on Linux, let me save you some time.
Copy all the content from your source snapped Postman UNDER (as the target GUID can be different)
/home/username/snap/postman/<id>/.config/Postman/Partitions/<standalone GUID>
to your target snapped Postman UNDER
/home/username/snap/postman/<a different id>/.config/Postman/Partitions/<a different standalone GUID>
Make sure you respect the target postman id and partition GUID.
Win10:
You have to back up your old Postman
C:\Users%user%\AppData\Roaming\Postman\IndexedDB
Then copy it to the same location of the new Postman installation.
This will recover all your collections.
In Debian-like systems, using Postman v7, I found a backup of all the collections and environments saved as JSON in ~/.config/Postman with the prefix backup-.
eg: ~/.config/Postman/backup-timestamp.json
Also, found a recent support article in Postman documentation:
How to recover my data
Windows 10, I copy these folder to another and worked.
C:\Users<username>\AppData\Local\Google\Chrome\User Data\Default\IndexedDB\chrome-extension_coohjcphdfgbiolnekdpbcijmhambjff_0.indexeddb.leveldb

How do you sync Postman with a git repository

I'm wondering how you can sync your Postman config with a git repository.
I know you can export and import from Postman to a folder - which is OK - but I wondered if there was something more effortless.
I'm not exactly sure how you're trying to use this, but a few options would be:
First Option
to use their addon cli called newman. You can run collections from a URL or Local file with newman using
newman run http://some.url.here
Then if you make the remote url a part of a git repository it would obviously update/change with each commit/pull
Second Option
Try this with extreme caution and only if you feel comfortable with the process, also this may not be compliant with their terms of use so I don't suggest you try it without first some research
If you can find the directory in which the Postman collections are held, you could create a hard link with the command line from a git repository on your machine to the directory or specific file you need to link. Whenever you change the source file the one in the Postman config will change.
The way in which you accomplish this will depend on the system you use and version of Postman.
In addition to exporting and cloud syncing as mentioned in the other answers, there's some other options too.
Postman added a Git sync in Postman app v9 so you can manage version control with forking, merging, and pull requests.
There are also built-in integrations to sync your Postman collections with GitHub, with GitLab, and other services for version control. These integrations are for users on the paid plans.
Postman also has an API so you can GET and run the latest version of your collection, environment, or whatever using Newman or continuous integration tools or to build your own integration.
Postman is not designed for that case. They offer a cloud service which keeps you and your collaborators in sync. You can try their cloud plan for 30 days for free. Check here: https://www.getpostman.com/cloud_trial_faq
You can use Postman integrations (Home > Integrations) to link Postman to your remote git repository.
The following article explains how to integrate your gitlab repo to Postman:
https://learning.postman.com/docs/integrations/available-integrations/gitlab/
Also you can use Postman API versionning to do something similar:
https://learning.postman.com/docs/designing-and-developing-your-api/versioning-an-api/
For non-free plans, Postman now (version 9 and up) supports automatic sync of collections with a git repository on several popular git services.
(Again, it's currently only available for paid plans)
See the documentation for how to integrate Postman with GitHub, GitLab and Bitbucket.
The process is roughly:
create a dedicated repo on your git provider (e.g. my-postman-collections-repo)
create a personal access token for the provider (e.g. GitHub) with the expected scope (e.g. repo and user)
define an integration (using postman UI) for each collection you want to be kept in sync
I'm working with the GitHub integration and it works great.

Nuget custom server returns 404

I am trying to setup nuget custom server, and cannot get it list my packages.
Here is list which I verified:
Server updated to .net 4.5
OS is Windows Web Server 2008 R2
Application pool is set to integrated, dotnet set to 4.0
modules runAllManagedModulesForAllRequests="true" is present
mime map is present in web.config, and visible by IIS
I am able to download file with direct link
i am able to push package to my server
So, when I go to http://servername.com i see nice:
You are running NuGet.Server v2.7.40911.225
Click here to view your packages.
but http://servername.com/nuget returns 404. Probably there is issue with original nuget routing.
It sounds to me like the ODATA routes are just not being picked up. Did you check that nothing is overriding this at the machine.config level? You may also want to check that your package path is configured, and the web app has permission to access it.
One thing that might be easier to do is to install a third-party NuGet server such as ProGet; it's free and installs pretty easily, and also will be a bit more robust in terms of features.
(disclaimer: I work for Inedo)

How to run appfacotry in local machine?

I have downloaded WSO2 appfacotry and ran it locally for testing purposes. It first gives carbon login and in the running application list I could see the /appmgt jaggery application is running. Then I tried to go to the url through the link provided in Action column in that application list. Initially I was routed to http://{some_ip_address}:9763/appmgt/ and then I was re routed to https://appfactory.example.com:9443/samlsso which gives me error. (because I don't have appfacotry.example.com domain.) How can I run appfactory without this faulty URL?
Here's documentation on installing App Factory: https://docs.wso2.com/display/AF201/Installing+On-Premise
Also, note that there is now a hosted version, which you can use in the cloud with no configuration required: http://wso2.com/cloud/app-cloud/
Other than the 3rd party tools mentioned above, you need App Factory, AS, API manager, Stratos Controller and ELB to have all App Factory features