So I’m trying to learn more about REST. I am able to get some list and make some new rows within the swagger help. I see lots of things saying that Postman is a good application to use to start developing things. So I have it downloaded and am able to go the basic get list and post some new rows from the information that I was able to get from swagger. So far so good.
I remembered seeing, and they talk about sample collections in the help docs for postman so I looked up Brian Conner’s postman example collection and I’m trying to get those imported to postman. But this is where I get stuck.
The help link for how to import a collection basically just restates the title of the tabs, but being new to all this, those titles don’t really mean anything to me. Can someone give me a quick rundown of what I do with the big block of code from GitHub and how I get them to show in the collection tree?
Do you mean the json text that shows when you click the collection link? You can either save it to a file or just copy the text and use the IMPORT feature on POSTMAN. There is an option to import raw text
That’s why I got messed up. The link listed goes to the create new instead of import, so the instructions don’t make sense for importing. Now that I used that button. It works great. I am able to get it working now.
So I’m trying some of the queries, and I’m trying the BAW lins tiwth company in query string, and the one with the header. Below is one of the examples.
Is this just a setting in Postman that’s messed up? Or is that just something that doesn’t work all of the time? Or am I doing something wrong? Does it even matter
Note: other things work fine. It just seems to be the list of BAQ’s doing this.
I was messing with the language settings (buttonitis here) and changed the language detection to JSON becuse rest is all JSON right??? I changed that back and now it returns the XML in the “pretty” version.
The example is actually getting a list of all of the BAQ’s filtered by company. Not especially helpful, I’m just exploring. For some reason, that call sends back XML instead of JSON.
You need to specify which BAQ you want to get. Only the BAQ information gets sent in JSON, if you do not specify any, a list of BAQs in XML code will be display… Try it out. you don´t even need post man for that, just put something like this in a web browser