GitXplorerGitXplorer
s

postman-to-markdown

public
4 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
790b5a585ab47be0852eaeaace1dc1dfd89b623a

Update postman-md.js

ssupunlakmal committed 6 years ago
Unverified
5443abf794106ac243dd281ab7c16e9a806d437a

Update postman-md.js

ssupunlakmal committed 6 years ago
Unverified
554f68f72488fe67cc28a157115018bf40a4daf7

Delete postman-md.js

ssupunlakmal committed 6 years ago
Unverified
ab6da581a74bb125ddf90305e15fb1eb34c127e0

Create postman-md.js

ssupunlakmal committed 6 years ago
Unverified
939ff28af52672d117525ef2be4be5c4659bf673

Update index.html

ssupunlakmal committed 6 years ago
Verified
c770aa02cf547e2ed2ee5a57a0e4d33a5d2f99be

Merge pull request #1 from supunlakmal/add-license-1

ssupunlakmal committed 6 years ago

README

The README file for this repository.

Postman to markdown

Convert Postman export (Collection v2.1) JSON data to markdown

Initiate class

     let postmanMD = new PostmanMD({
      withRespond: true
    });

Link file to class

    postmanMD.readJsonFile('thismypc.postman_collection.json');

Example

Return with respond block

     let postmanMD = new PostmanMD({
      withRespond: true
    });

Login From Web

Loging for web site

URL : http://thismypc.com:5000/login

Method : POST

Request Header

{ 
"Content-Type" : "application/json"
} 

Request Body

{ "email":"user@gamil.com", "password":"^%$fghkjh6" } 

200 OK

Code : 200

Content example

{ "status": true, "message": "Hello!", "data": { "name": "Supun", "auth": "bfc6f0295bbab0c80b3d3cfb55dfe5", "id": "5c3d6a25221d01eba0afc9", "ioSocketID": "room1" } } 

401 Unauthorized

Code : 401

Content example

{ "status": false, "message": "Invalid User", "data": null } 

Return without respond block

     let postmanMD = new PostmanMD({
      withRespond: false
    });

Login From Web

Loging for web site

URL : http://thismypc.com:5000/login

Method : POST

Request Header

{ 
"Content-Type" : "application/json"
} 

Request Body

{ "email":"user@gamil.com", "password":"^%$fghkjh6" }