postman for beginners

codewithzaheer

POSTMAN

Postman, It is a platform for building and using API.

We can manage a complete API lifecycle with postman.

A postman help us to do.

Development
testing
Management

For more information visit

Explore Postman

a website which consist of sample dummpy API'S for the practice purpose visit Click Here

We can get a endpoint to use in postman

The common http methods are

GET To get the values

POST To create the values

PUT To update the values

DELETE To delete the Resources

PATCHTo update the particular field.

Note:

Put will replace the resources, and patch will be used for particular field updates and we can give only required fields in the body instead of whole body fields.


You can visit the link for more information about HTTP methods Click Here

Collections

It is a Group of API requests


variables

Variables are key value pairs or elements that can store different values.

we can reuse the value at Multiple locations if required.Change can be done at a single place.

Advantagewe can store URLS or etc in varaibles and we can use this variable in double curly braces {{name of the variable}}. instead of using the lengthy values. And this method can be used when some values is repeatedly used at multiple places. We can extract out all common values and keep them at one place.

POSTMAN - GET and SET Variables with scripts

Below the request section we can see the tests section in that we can add scripts to set and get varaibales.

Pre-req Scripts executes before running the requests

testScripts executes after running the request.

Setting variables with scripts

Global level: pm.globals.set("name","zaheer");

collection level: pm.collectionVariables.set("name","zaheer");

Environment Level: pm.environment.set"name","zaheer");

local level: pm.variables.set("name","zaheer");


getting variables with scripts

global level: pm.globals.get("name");

or

console.log(pm.globals.get(name);

or

we can store it in variable and then we can call exaample:

let value = pm.globals.get(name);

console.log(value);

collection level: pm.collectionVariables.get("name");

environment level: pm.environment.get("name");

local level: pm.variables.get("name");

note:
Access a variable at any scope, including local, based on priority.

priority levels

local --> data --> environment --> collection --> global

to remove: pm.enviroment.unset("name");

Environments

Environment is a set of key value pairs.

we can use it to store variables which can be used in requests and body and scripts etc...

example:

we can store a request url in a enviroment variable and instead of URL we can use that variable

endpoint=localhost:9008/rest/api/

at the reqest body: http://{{endpoint}}/user.

scripts

When we open any request, We can see pre-request script.= we can create any sctipts and this scripts
will get executed before we run And we have the test section here also we can create the scripts and the scripts get executed after the getting a response from the server.

Tests

Tests in Postman are JavaScript code that is executed after receiving response. We can add test scripts as at a request level, collection level and folder level.

debug

Debugging in the console. Every request sent by Postman is logged in the console, so you can view the detail of what happened when you sent a request. This means you can use the Postman Console to help debug your requests when an API isn't behaving as you expect.

example:

we can run and check the pre-request script

console.log("this is a log");

console.info("this is a info");

console.warn("this is warn");

console.error("this is a error");

Now, open console we can check it.

We can also get data from json file and csv files..

To get the data from CSV or Json file first we have to create a file and add a data in the file and save the file with CSV or Json Extension

Now to add this file first click on Collection then click on three dots on right top on that collection,then you will get the run collection option, select a request method Then you will get.an option like Select file option then you have to upload respected csv or json file And run.

Authorization

APIs use authorization to ensure that client requests access data securely. This can involve authenticating the sender of a request and confirming that they have permission to access or manipulate the relevant data. If you're building an API, you can choose from a variety of auth models. If you're integrating a third-party API, the required authorization will be specified by the API provider.

For more information

DocumentationClick Here

Additional information: Click Here



git commands for uploading the project into github repository

codewithzaheer

Git Commands

First, check whether the git is installed on your machine or not!

1. For checking follow the command cmd>git --version

If the git version has not appeared? install the git application properly and add the path in environment variables.

Later follow the commands...

2. git init - (to initialize a new repository)

# config is used to configure the user's identity on the repository

3. git config --global user.name " here your username as per in your GitHub "

4. git config --global user.email "your mail id which is used for GitHub"

5. git status -(to get the current status of repository and files)

6. git add (to add the files to the staging area and files can be tracked)


#git add consists of three versions

1. git add filename - (to add a particular file)

2. git add * - (to add all the files to the staging )

3. git add . - (add all the files to staging including the .files)


7. git commit -m "Here add your message for your commit" (to commit the changes to the repository)

8. git diff -(to analyze the changes between files)


#now push into the server by creating the repository in GitHub

9. git remote add 'here your GitHub repository URL - (for connecting local repository to remote repository)

10. git push -u origin master - (sending files to the remote repository)

For more information visit

Explore GIT

Angular framework commands for beginners

Commands List:
First, we need to install node js to install the angular so follow the link  to install node Download
To verify whether it installed successfully or not  run the command  i.e., check the npm version 
cmd> npm --version
npm is a package manager to install the packages.

The angular commands are...

Install angular cli - npm install -g @angular/cli

Check angular version - ng --version

Create new application - ng new applicationname

Run application - ng serve   or   npm start

Generate component - ng g c componentname   or  ng generate component componentname

To generate component with custom  - ng g c componentname -it -is --skipsTests=true

To create a service class - ng g s serviceclassname

To skiptestfile in service - ng g s serviceclassname --skipTests=true

New module - ng g m nameofmodule --route nameofmodule --module app.module.ts

To create guards - ng g guard guard-name

To install bootstrap popper and jquery - npm install bootstrap jquery popper --save

To generate a class - ng g class classname

To generate custom directives - ng g directive nameofthedirective

To know more visit 


IBM Off-Campus Hiring | Associate Systems Engineer

Here is an excellent opportunity to work with a 110-year-old company IBM.
Please check out the criteria below before applying.

Eligibility Criteria:
  • This is an entry-level Off-Campus hiring position, and the candidates must have completed their education and must have obtained their degree before the start of employment with IBM.
  • Course Completion Year: 2020/2021 only with less than 2 years experience.
  • BE/B.Tech/ME/ M.Tech/MCA/ MSc in CS/ IT/ Mathematics OR other Semi IT/ circuit branches with 6.0 CGPA Or 60%(Calculation of qualifying marks =Sum of marks obtained divided by Sum total of maximum marks obtainable. All subjects will be considered including elective/optional subjects).
  • No Active Backlogs
  • Fluent interpersonal skills (written and spoken)
Job Role:  Associate Systems Engineer

CTC Details :
ME / MTech / M.Sc : INR 4.90 Lakh per annum
BE / BTech / MCA  : INR 4.50 Lakh per annum

Roles & Responsibility :
As an Associate System Engineer:
You will be focusing on individual/ team objectives and involve yourself in the development of professional effectiveness. In the role, you will design applications, write codes, test, debug and maintain Software Applications across various platforms and technologies.

Work Location: Mumbai, Pune, Delhi/ NCR, Gurgaon, Noida, Hyderabad, Chennai, Kolkata, Bangalore, Ahmedabad 

Selection Process: IBM CodeKnack
  • Coding Capability
  • English Language
  • Personal Interview 


Kyndryl - off Campus Recruitment 2022

Here is an excellent opportunity to work with the leading IT service management company Kyndryl.
Please check out the criteria below before applying.
Eligibility Criteria:
BE, BTech, ME, MTech, BCA, MCA, Bsc, Msc - computer science, ECE, Electronics, Electrical, Information Technology.

Candidates should have scored a minimum of 6.5 CGPA/65 %
Year of pass out - 2019, 2020 & 2021
CTC Offered: 4.2 LPA
Job Role: Associate Technical Engineer
About Kyndryl:
We design, build, manage and modernize the mission-critical technology systems that the world depends on every day. Our people are at the center, discovering, co-creating, and strengthening. We push ourselves and each other to seek better, to go further, and we carry this energy to our customers. In October 2020, IBM announced its intention to separate the IT Infrastructure Services unit of its Global Technology Services division into a new, separate public company, creating two industry-leading companies - IBM and Kyndryl.

useful apps and websites for your preparation

Programming apps:
  • SoloLearn
  • Programming Hero
  • Mimo
  • Programming Hub
  • Code Hub
  • Grasshopper
  • Enki
  • Encode
  • Codecademy
  • DataCamp
Learning websites:
  • W3School
  • freeCodeCamp
  • GeeksforGeeks
  • Udacity
  • Udemy, Inc.
  • Codecademy
  • Coursera
  • Khan Academy
  • edX
Queries Websites:
  • Stack Overflow
  • Quora
  • Reddit
  • CodeProject
  • Programmers Heaven
  • Coderanch
  • FindNerd
  • Chegg
Challenge Websites:
  • Codewars
  • HackerRank
  • Topcoder
  • Coderbyte
  • HackerEarth
  • Leetcode
  • CodeChef
  • Edabit
  • Codeforces
  • SPOJ

note: if you know any other websites and apps please let me know.. which can be helpful

keyboard shortcuts you must know as a programmer

The keyboard shortcuts you must know to save your time.
1. ALT + F4   - (To close the currently active window and if no window is active then a shutdown dialog box will appear to shut down or to restart the system).
2. CTRL + home - (Move to the starting point of a line).
3. CTRL + end - (Move to the endpoint of a line).
4. CTRL + A - (To select all)
5. F1 - (Help)
6. fn + F2 - (To rename )
7. ALT + TAB - (To migrate from one tab to another)
8. ESC - (Cancel)
9.  CTRL + >  (Next word)
10. SHIFT + > (To select
 right-side item)
11. SHIFT + < (To select left-side item)
12. CTRL + C  (To copy)
13. CTRL + V (To paste)
14. SHIFT + DEL   - (To delete permanently)
15. CTRL + SHIFT + N  (Create new folder)
16. Window + prt sc  (Screenshot)
17. F5 (Refresh)
18.  Window + R  (Open RUN command)
19. Window + L (Lock your PC)
20. ALT + ENTER  (Selected item property)
21. CTRL + B (Bold text)
22. Window + I (To open settings)
23. Window + D (Minimize & Maximize all tabs)
24. Window + + (Open Magnifier)
25. CTRL + Y (Redo)
26. CTRL + Z (Undo)
27. CTRL + SHIFT + W (Close all tabs)
28. CTRL + SHIFT + T (Reopen last close tab)
29. CTRL + SHIFT + S (Save as)
30. CTRL + S (Save)