1
00:00:00,280 --> 00:00:02,770
Our application is running on localhost five thousand.

2
00:00:03,180 --> 00:00:08,070
We want to swing back to the postman and we want to get the documentation.

3
00:00:08,070 --> 00:00:11,370
And the way we do that, we look for our collection.

4
00:00:11,940 --> 00:00:18,560
Before you do anything, just make sure that the global you are variable is the same and all the requests.

5
00:00:18,930 --> 00:00:24,750
In my case, I'm using the production one, but it doesn't really matter since will change that value

6
00:00:24,750 --> 00:00:25,620
later anyway.

7
00:00:25,890 --> 00:00:31,740
So you can use the just make sure that all the requests have the same value.

8
00:00:31,920 --> 00:00:34,140
Otherwise you might get some weird bugs.

9
00:00:34,350 --> 00:00:38,230
And in fact, Postman offers documentation itself.

10
00:00:38,490 --> 00:00:43,920
The problem is that once you publish it, it actually goes to a separate URL.

11
00:00:44,670 --> 00:00:45,870
Now, what do I mean by that?

12
00:00:45,900 --> 00:00:52,410
Well, eventually in our API we'll have the root API docs, as you can see.

13
00:00:52,710 --> 00:00:56,950
And this is where the user will be able to access the docs with Postman.

14
00:00:56,970 --> 00:01:02,750
Once we publish the docs, they're automatically posted online but on a separate URL.

15
00:01:03,090 --> 00:01:09,360
And since I want my docs to be on the same server, that's why we're doing all this swagga stuff.

16
00:01:09,750 --> 00:01:14,250
In order to export documentation, just look for the collection again.

17
00:01:14,250 --> 00:01:15,300
Jobs API.

18
00:01:15,510 --> 00:01:22,020
Make sure that the URLs are all the same in all the requests and the option you're looking for is this

19
00:01:22,260 --> 00:01:23,160
export one.

20
00:01:23,580 --> 00:01:29,130
If for some other reason you don't see it, just sign up for a free man account.

21
00:01:29,460 --> 00:01:30,750
It's not going to cost you anything.

22
00:01:30,760 --> 00:01:35,800
They're not going to charge your credit card just to use the email and you'll be good to go.

23
00:01:35,820 --> 00:01:36,720
Again, this is the case.

24
00:01:36,810 --> 00:01:38,520
If you don't see the export option.

25
00:01:38,850 --> 00:01:42,060
If you do, then smash the export option like there's no tomorrow.

26
00:01:42,450 --> 00:01:47,250
Afterwards, pick the second option, then decide on a name and location.

27
00:01:47,490 --> 00:01:52,410
And in my case, I'm going to go with Docs, Jason, and I'll say it on a desktop.

28
00:01:52,590 --> 00:01:58,440
And once we navigate to the location and we can see the Jason file, then of course we can move on to

29
00:01:58,440 --> 00:01:59,100
the next step.

