Postman

Request

Query Params

?KEY=VALUE

Path Variables

:userid

Scripts and tests

Learn Postman by Trello API

Postman Trello API requests and tests:

  1. Create a trello board

  2. Create two lists TODO and DONE

  3. Create a new card inside TODO

  4. Move the card to DONE

  5. Delete the board

Variables

{{ENVIRONMENT_VARIABLES}} -> Use to easy switch environment. Allways is used before Global Variables

{{GLOBAL_VARIABLES}} -> The same like Environment but it's not easy to switch. And Environment variables has bigger priority.

Debugging tests

console.log(response.prefs);

and click Console to see it.

GitHub API

GitHub Repository

GET https://api.github.com/user/repos

1. Authorization > Type - Basic Auth > Username/Password to GitHub 2. Send Request

Path Parameters

Create a new Repo

POST https://api.github.com/user/repos

Request Body

Check public Repo

GET https://api.github.com/repos/:owner/:repo

Path Parameters

Create Issue

POST https://api.github.com/repos/:{owner}/:{repo}/issues

Path Parameters

Request Body

Check created Issue

GET https://api.github.com/repos/:{owner}/:{repo}/issues/:{issue_number}

Path Parameters

Delete GitHub Repo

DELETE https://api.github.com/repos/:{owner}/:{repo}

Path Parameters

Check deleted Repo

GET https://api.github.com/repos/:{owner}/:{repo}

Path Parameters

Collection and test run

Last updated