Importing postman into Paw doesn't work - paw-app

I exported a postman file as described on Paw extension and then imported using the postman importer. I see the imported group in Paw but the calls are all missing.
{"id":"476dc4a4-6a1e-02fd-93e8-fe82108caa2d","name":"ACME","timestamp":1428427257940,"requests":[{"collectionId":"476dc4a4-6a1e-02fd-93e8-fe82108caa2d","id":"00229e57-d36b-4589-9108-9491a434ef37","name":"token","description":"","url":"http://mydomain/rest/v10/oauth2/token","method":"POST","headers":"","data":"{\n \"grant_type\":\"password\",\n \"client_id\":\"sugar\",\n \"client_secret\":\"\",\n \"username\":\"XXX\",\n \"password\":\"XXX\",\n \"platform\":\"webservice\"\n}","dataMode":"raw","timestamp":0,"responses":[],"version":2}]}

Update: Paw's documentation has been updated, and there's a new article on How to migrate from Postman to Paw
This was a bug in the Postman Importer v1.0.0. I've just fixed that bug in v1.0.1. It happened because for some reason there are Postman Collections that are missing the "order" field (to keep the order of requests in the collection) the importer was expecting.
Anyways, it's now fixed. Please update your Extension in Paw menu Paw > Extensions > Check for Extensions Updates.
Hope it helps!

Related

Getting 401 error in postman using NextJS in Gitpod

Thanks for looking at my issue.
I am learning NextJS, and using Gitpod to test my exercise project.
The code I wrote is just a simple API route which works when you type API route in the browser (it returns DATA in JSON as expected).
However when trying to check the API using postman (and Thunder VScode extension), I get 401 error.
I have tested similar code in Codesandbox, and it works fine using postman.
Can you please advise what am I missing?
Thanks,
This code works with browser and postman,
export default function handler(req, res){
res.status(200).json({name: 'John Doe'})
}
Possible solutions:
Change https to http in posman
Delete .next folder + re-run project
Look at your gitpod settings, maybe you have some restrictions based on your profile
Problem solved :) Thanks to Gitpod
Port should have been set to Public

Facing issue with signedUrl using #google-cloud/storage in firebase-cloud-functions

I want to create signedUrl of an image(saved in firebase-storage) out of its path, as we know, firebase sdk doesn't provide such functionality in firebase-cloud-functions, so i've followed the instructions given at Get Download URL from file uploaded with Cloud Functions for Firebase
I'm able to generate the url for image via cloud-function, but after opening that link in browser, receiving the following error.
<Code>MalformedSecurityHeader</Code>
<Message>Your request has a malformed header.</Message>
<ParameterName>signature</ParameterName>
<Details>Signature was not base64 encoded</Details>
Unlikely this is your problem - but I realised I was getting exactly this error because I was 'ctrl+clicking' the link in the VS code terminal - and it was only copying a partial URL into chrome. If I manually copy and paste the full URL into chrome, it was actually valid.

Convert Postman Collection to PDF

I've developed a pretty extense API, and I have it on Postman, which works pretty nice. Now I have to generate an html doc to keep it versioned inside /docs along with my sources.
Is there a tool or a way to achieve this? I really don't want to write all this documentation.I don't want to use Postman publish docs also. Sharing the postman collection is not an option
How can we convert Postman Collection to PDF/Word document?
You can publish the documentation of your collection through postman :
Click on the ... -> Publish Docs.
This will open a new page to postman website in which you can preview your documentation.
Click on Preview Documentation, it will open a new page as the html version of the documentation.
Right click to display chrome option Print it
This will provide you the option to save it as a pdf
This answer was inspired from here for Creating html doc from postman collection.
The best I've found is Postman to HTML (properly, not file > save)
Install this anywhere in your PATH: https://github.com/aubm/postmanerator
Right click on your collection in Postman and click export, which will give you a JSON file
Run postmanerator -output=/var/www/public/api.html -collection=/var/www/my-collection.json in cli
You can create your own themes too which collectively is what we all want to be able to do straight out of Postman
For newer versions of postman try this
Go to your collection
Right click the collection and go to "View Documentation"
Then top right hand corner, press "Publish"
You can also get the PDF version by clicking :

I've just bought PAW and registered with their site. How do I use PawPrints?

I've just bought Paw and, while exploring the app found a mention of pawprints, which appear to be some sort of saved snippets or requests or something. I registered with the website and it tells me I have no saved pawprints. I've searched all over the help files and documentation and can't actually see how to create a pawprint, or even a clear definition of what a pawprint actually is.
So my questions are, what are pawprints and how do I use them?
Okay thanks Micha,
From the Blog Post (which Google couldn't find when I searched)
Last May, we launched Pawprint, a quick way to share the requests you tested in Paw. The idea of a getting a short link that you can paste anywhere, sharing what you just see on screen, was very appealing and something we wanted to do almost since the beginning of Paw.
That's handy to report bugs to the API provider (often those backend guys sitting on the other side of the room), or to show to the consumers (often the client folks playing with smartphones and web browsers) how your PATCH endpoint works.
In Paw, just hit ⌘/, and a permalink will be copied. Paste it anywhere from Slack and GitHub tickets, to StackOverflow answers.
You'll also get client code generated in many languages, plus cURL or HTTPie command lines, to run the same request from code.
Apparently the Paw website is being updated now to make this clearer.

A simple GET with Grails

I have built a simple Grails app, with a domain-class and its controller (with the default scaffold functionality).
I want to use this for an Android app.
I had to get my objects in the JSON format, and thanks to stackoverflow it's been easy ;)
Now I have to put data. I should make a POST call to http://localhost:8080/MyApp/person/save with parameters, I suppose. But I can't succeed using RESTClient or other simple utilities/firefox addons that GET/POST data over an HTTP server.
The response web page is an error web page, saying "Property 'name' can't be null" or similar... as if I have no parameters passed. Perhaps I'm not able to make a POST request on a page?! o_O
And how can I enable GET, in Grails, to insert objects?
Thank you.
Funny, I think I am about 2 weeks ahead of you on a similar project. :)
When you do your Post, be sure and include the ?format=json on the end of your URL and grails will automagically parse the params with no extra code in the controller. Isn't grails wonderful?

Resources