In this video, learn how to use Postman to write acceptance tests for an API.
- [Instructor] In the previous video…we learned how to build a REST API for accessing Nodes.…In this video we will learn about acceptance tests,…which help us reduce breaking changes in an API.…We are going to take a look at acceptance tests,…what they are and why they are important.…We will install Postman and Interceptor.…Postman is a very popular tool for testing HTTP-based APIs.…Interceptor is an extension to Postman…that allows Postman to send cookies and API requests.…We will create the requests needed to test our API,…and finally, we will write the test cases.…
What is acceptance testing?…Acceptance testing, which is sometimes called…functional testing is a test conducted to determine…that the requirements of a specification are met.…In our API, the specifications are…the resource path, the headers sent and received,…the data sent and received…and its format, the status codes returned…and the outcome or effect of hitting a resource.…If all the acceptance tests pass after updating an API…then we can be confident that the changes…
This Node.js course gives you an overview of a RESTful API and the logical steps of creating one. It explores three different APIs, focusing on their similarities and differences and how to effectively implement one. Instructor Saleh Hamadeh starts off by defining APIs, showing how they can be built on top of HTTP and listing the properties that make an API RESTful. Learn how to develop Twitter Notes, a sample web application that lets users leave notes for their Twitter friends. Use Twitter's API to implement a login flow and then design a web API. Additionally, get a closer look at several other real-world APIs, and learn some best practices to keep APIs secure, maintainable, and efficient.
- Identifying REST resources
- Setting up the development environment
- Consuming a RESTful API
- Creating an OAuth login request
- Getting an access token
- Saving data in MongoDB
- Building a RESTful API
- Testing user-perceived performance
- Looking at APIs in the real world
- Best practices for building RESTful APIs