16
Presented By:

Presented By · data from/send data to the server. ... Run REST ful Flask server to receive requests from clie@ from from from app api import flask Flask, request flask restful import

  • Upload
    others

  • View
    9

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Presented By · data from/send data to the server. ... Run REST ful Flask server to receive requests from clie@ from from from app api import flask Flask, request flask restful import

Presented By:

Page 2: Presented By · data from/send data to the server. ... Run REST ful Flask server to receive requests from clie@ from from from app api import flask Flask, request flask restful import

● Download Postman

● Understand RESTful APIs

● Talk about the changing face of software

Page 3: Presented By · data from/send data to the server. ... Run REST ful Flask server to receive requests from clie@ from from from app api import flask Flask, request flask restful import

getpostman.com/appsDownload the API Client:

bit.ly/wdwpostmanSee the code snippets:

Page 4: Presented By · data from/send data to the server. ... Run REST ful Flask server to receive requests from clie@ from from from app api import flask Flask, request flask restful import

Postman is an API development platform.

An API is the interface that governs the various access points for a server. Users makes requests to these endpoints to get data from/send data to the server.

A RESTful API uses HTTP requests to contact the server.

Page 5: Presented By · data from/send data to the server. ... Run REST ful Flask server to receive requests from clie@ from from from app api import flask Flask, request flask restful import
Page 6: Presented By · data from/send data to the server. ... Run REST ful Flask server to receive requests from clie@ from from from app api import flask Flask, request flask restful import
Page 7: Presented By · data from/send data to the server. ... Run REST ful Flask server to receive requests from clie@ from from from app api import flask Flask, request flask restful import

● Understand elements of the Postman UI

● Understand hierarchy of concepts in Postman

Page 8: Presented By · data from/send data to the server. ... Run REST ful Flask server to receive requests from clie@ from from from app api import flask Flask, request flask restful import

HEADER

Page 9: Presented By · data from/send data to the server. ... Run REST ful Flask server to receive requests from clie@ from from from app api import flask Flask, request flask restful import

SIDEBAR

Page 10: Presented By · data from/send data to the server. ... Run REST ful Flask server to receive requests from clie@ from from from app api import flask Flask, request flask restful import

REQUEST BUILDER

Page 11: Presented By · data from/send data to the server. ... Run REST ful Flask server to receive requests from clie@ from from from app api import flask Flask, request flask restful import

RESPONSE VIEWER

Page 12: Presented By · data from/send data to the server. ... Run REST ful Flask server to receive requests from clie@ from from from app api import flask Flask, request flask restful import

● The core function of Postman is to send and see the result of an HTTP Request to an API endpoint.

● Supports all HTTP methods (GET, POST, PUT, etc.)

● Responses can be in JSON, XML, HTML, or text.

● Collections are groups of saved requests.

○ Organization

○ Documentation

○ Test Suites

○ Conditional Workflows

● Variables allow for re-use of values to avoid repetition.

Page 13: Presented By · data from/send data to the server. ... Run REST ful Flask server to receive requests from clie@ from from from app api import flask Flask, request flask restful import

● Create and send API requests using Postman

● Use Workspaces and Collections to organize requests

Page 14: Presented By · data from/send data to the server. ... Run REST ful Flask server to receive requests from clie@ from from from app api import flask Flask, request flask restful import

GET POST● GET simply requests a specified resource. This has no side

effects.

○ Fetching the homepage of Google

○ Getting weather forecast for Pittsburgh

● POST submits data to be processed to a specified resource. This updates remote data.

○ Signing into your Google account

○ Adding new data points to the weather forecast for Pittsburgh

Page 15: Presented By · data from/send data to the server. ... Run REST ful Flask server to receive requests from clie@ from from from app api import flask Flask, request flask restful import

● Get an overview of the power of Postman

Page 16: Presented By · data from/send data to the server. ... Run REST ful Flask server to receive requests from clie@ from from from app api import flask Flask, request flask restful import