Course Overview:
RESTful APIs (or simply REST API) are everywhere nowadays but at the same time they are getting more complex to get started with: different HTTP methods, headers, cookies, dealing with file uploads or authentication with api keys, tokens, OAuth and so much more. Postman allows you very quickly create a request with the required HTTP method and parameters, submit the request and easily inspect the results. The Open API Specification (often called “Swagger”) is currently the most popular way to create definitions of RESTful APIs. With these definitions, you can create sophisticated, auto generated documentation, generate SDKs in several languages, and do automated testing. Swagger is a set of open source tools that use these Open API Specification definition files
Course Objectives:
Participants will learn how to:
- Create GET, POST, PUT, DELETE request
- Understand GET vs POST request method
- Work with real-world APIs (Github API, Trello API)
- JavaScript basics for tests
- Write API tests in Postman
- Use data from Excel files (CSV) or JSON
- Use Postman variables to create workflows and scenarios
- Run API tests with Newman in Jenkins, GitLab CI or TeamCity
- Use OAuth2, API keys, tokens, JWT, basic auth
- Test file uploads
- Use mock servers
- Collaborate using Team Workspaces
- Read and write Open API Specification (Swagger) files to define and document APIs
- Use Swagger tools to edit files, create documentation, and create SDKs
- Understand alternatives to Swagger and OAS.
Pre-requisites:
- Any software developer/tester with knowledge on REST APIs and JSON
Target Audience:
Who should attend?
This course is targeted towards testing engineers and developers.
- Anyone who wants to be able to read or write Open API Specification (Swagger) files
- Project managers
- Technical writers
- Technical sales staff
- Technically skilled managers
Course Duration:
- 14 hours – 2 days
Course Content:
- Introduction & First steps in Postman
- Creating with API requests
- Writing tests & Scripts
- Writing tests & Scripts using variables
- Hands-on Practice: Building & Testing an API workflow using Github & Twilio
- Advanced assertions
- Automatically running tests
- Running Newman with other CI servers/ tools.
- Workflows & scenarios
- Data Driven Tests: Running a request multiple times with different data sets.
- Team Collaboration
- Mock Servers
- File uploads (Testing, Automatic uploads, uploading multiple files).
- Authentication/ Authorization
- Advanced topics & user questions
- New features in Postman
- JavaScript Fundamentals.
- Postman news & updates.
- Bonus Section
- Swagger Tools
- Swagger Hub
- Alternatives to Swagger and OAS
- Swagger for a Real World API