Professional Documents
Culture Documents
## Postman Document ##: 1) Status Code & Methods Example
## Postman Document ##: 1) Status Code & Methods Example
2) Base Url
3) Endpoint
Complete Url = https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=-
33.8670522,151.1957362&radius=1500&key=AIzaSyCzDn4ZSuqeBSC2ZUy-M_FnNkQXuseCwBQ
[Comment]: Any value which comes after “?” is query parameter, Three Query param used in this URL
1) location=-33.8670522,151.1957362&
2) radius=1500&
3) key=AIzaSyCzDn4ZSuqeBSC2ZUy-M_FnNkQXuseCwBQ
5) Difference Authentication and Authorization
[Authentication] is the process of verifying who a user is
[401 Unauthorized]: Since user is not registered in an app, He/she is not authorized person to login
[403 Forbidden]: User is Registered, but user has not access to resource which user is looking for
2) Expiration > [COOKIES] can also persist after client closes the browser or shuts down while
[SESSION] typically don’t last as long to conserve resources.
3) Security > [SESSION] is more secure than COOKIES. Because [SESSION] will destroy it's data
immediately and after closing the application. But COOKIE gets its data for a defined time, either the
application is opened or closed.
# [MAJOR DIFFERENCES BETWEEN COOKIES & SESSION]
[Session]
A session creates a file in a temporary directory on the server where registered session variables and
their values are stored. This data will be available to all pages on the site during that visit.
A session ends when the user closes the browser or after leaving the site, the server will terminate
the session after a predetermined period of time, commonly 30 minutes duration.
[Cookies]
Cookies are text files stored on the client computer and they are kept of use tracking purpose. Server
script sends a set of cookies to the browser. For example, name, age, or identification number etc.
The browser stores this information on a local machine for future use.
When next time browser sends any request to web server then it sends those cookies information to
the server and server uses that information to identify the user.
cmd
node -v
npm -v
newman run collecctionfilename.json (path of the file name where .json file is kept)
12) Newman Collection Runner: Running collection runner file using newman
Command to run json collection using newman
newman run <path-of-the-collection>(.json file)
newman run <"E:\Postman API Collections\COVID19-Tracker.postman_collection.json">