-
Notifications
You must be signed in to change notification settings - Fork 3
Postman Installation Guide
Postman is a software for interacting with HTTP APIs. It presents you with a friendly GUI for constructing requests and reading responses. The people behind Postman also offer an add-on package called Jetpacks, which includes some automation tools and, most crucially, a Javascript testing library. This post will walk you through an example that uses those testing features. While they won't replace your focused unit tests, they do breathe new life into testing features from outside your applications. This makes it extremely valuable for functional testers or for developers who love to test outside-in.
HTTP VERBS generally used in POSTMAN GET : Read a specific resource (by an identifier) or a collection of resources. HEAD : Works same as GET, just returns the header. PUT : Update a specific resource (by an identifier) or a collection of resources. Can also be used to create a specific resource if the resource identifier is known before-hand. DELETE : Remove/delete a specific resource by an identifier. POST : Create a new resource. Also a catch-all verb for operations that don't fit into the other categories.
HTTP Response Codes for Status Using top 10 HTTP status codes
200 – ok – general success 201 – created – New resource has been created 204 – no content – Success and response body empty. The resource was successfully deleted. 304 – Not Modified – The client can use cached data 400 – Bad Request – The request was invalid or cannot be served. The exact error explained in error payload. 401 – Unauthorized – The request requires an user authentication 403 – Forbidden – The server understood the request, but is refusing it or the access is not allowed. 404 – Not found – There is no resource behind the URI 405 - Method not allowed 422 - Unprocessable Entity 500 – Internal Server Error
Steps are as follows:
- wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz
- sudo tar -xzf postman.tar.gz -C /opt
- rm postman.tar.gz
- sudo ln -s /opt/Postman/Postman /usr/bin/postman
- This step is for a command to create an Unity desktop file for your launcher. cat > ~/.local/share/applications/postman.desktop <<EOL [Desktop Entry] Encoding=UTF-8 Name=Postman Exec=postman Icon=/opt/Postman/resources/app/assets/icon.png Terminal=false Type=Application Categories=Development; EOL
You need to create account on postman, click here