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 -

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

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 -
πŸ“Œ Join 30 Days Challenge Updates -
πŸŽ“ Free Automation MasterClass -
πŸ“š REST API testing with Python -

βœ… 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 :

βœ… Automation Tester Community -
🐦Follow us on Twitter -
πŸ“– Like us on Facebook -
🎀 Listen to our Podcast -

βœ… 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!


Top comments (0)

Timeless DEV post...

Git Concepts I Wish I Knew Years Ago

The most used technology by developers is not Javascript.

It's not Python or HTML.

It hardly even gets mentioned in interviews or listed as a pre-requisite for jobs.

I'm talking about Git and version control of course.

One does not simply learn git