DEV Community

Cover image for πŸ”₯ What Is REST for Beginners(With 6 constraints Explained)
Pramod Dutta
Pramod Dutta

Posted on • Updated on

πŸ”₯ What Is REST for Beginners(With 6 constraints Explained)

πŸ”₯ Build Custom API Automation Framework - https://apitesting.co/workshop

Hey BugHunters, In this video we are going to discuss What is REST API? and what are REST constraints explained in 10 min.

 Rest Assured Tutorial

P.S:
This is Day 8 of the 30 days of API Testing challenge Series. Where will learn the Basics before jumping to API Automation.

πŸš€ All 30 Days Task - https://scrolltest.com/30days/restassured
πŸ“Œ Join 30 Days Challenge Updates - https://scrolltest.com/tta
πŸŽ“ Free Automation MasterClass - https://thetestingacademy.com
πŸ“š REST API testing with Python - https://masterapitesting.com

βœ… What is REST?
REST is acronym for REpresentational State Transfer.
It is architectural style for distributed hypermedia systems and was first presented by Roy Fielding in 2000 in his famous dissertation.
The REST architectural style describes six constraints.

βœ…REST Six Constraints

  • Uniform Interface
  • Stateless
  • Cacheable
  • Client-Server
  • Layered System
  • Code on Demand (optional)

βœ… What is API?
API is the acronym for Application Programming Interface. It’s Kind of intermediary that allows two applications to talk to each other.
They can be set of subroutine definitions, protocols.
API can be web-based system, operating system, database system, computer hardware or software library.

βœ… Types of APIs
We are only Concern about the Web API

  • Simple Object Access Protocol
  • Remote Procedure Call
  • Representational State Transfer (REST).

βœ… What is API Testing?
API testing is testing that APIs and its integration with the services.

βœ… What to Test in API Testing?

  • Validate the keys with the Min. and Max range of APIs (e.g maximum and minimum length)
  • Have a test case to do XML, JSON Schema validation.
  • Keys verification. If we have JSON, XML APIs we should verify it’s that all the keys are coming.
  • Verify that how the APIs error codes handled.

βœ…Types of Bugs that API testing Detects

  • Fails to handle error conditions gracefully
  • Unused flags
  • Missing or duplicate functionality
  • Reliability Issues. Difficulty in connecting and getting a response from API.
  • Security Issues
  • Multi-threading issues
  • Performance Issues. API response time is very high.
  • Improper errors/warning to caller
  • Incorrect handling of valid argument values
  • Response Data is not structured correctly (JSON or XML)

βœ… Time Jump

πŸ”” Join Facebook Group : https://scrolltest.com/fb

βœ… Automation Tester Community - https://thetestingacademy.com
🐦Follow us on Twitter - https://twitter.com/itstechmode
πŸ“– Like us on Facebook - https://www.facebook.com/scrolltest
🎀 Listen to our Podcast - https://anchor.fm/thetestingacademy

βœ… What is covered in Rest Assured Tutorial or 30 Days of API Testing with Rest Assured Challenge?

  • Learn How to Master API Testing with Rest API Testing with Rest Assured.
  • Step By Step Tutorials
  • Building your Own Custom Framework.

βœ… What is Rest Assured?
REST Assured is a Java library that provides a domain-specific language (DSL) for writing powerful, maintainable tests for RESTful APIs. I'll be using real-world code examples you can copy, run, and reuse directly in your own test automation efforts

--
Be sure to subscribe for more videos like this!

 TheTestingAcademy

Latest comments (0)