Get Method
Reading Time: 3 minutes

Some most common HTTP methods that you come across while doing API testing.

Browser uses these methods in the background to get you the information you see on screen.

It’s important to know these HTTP methods. in this post we will discuss the major one, though there are many

Applications designed uses Web APIs which are being called to bring data from databases and show you the response on UI.

Subscribe to my Channel

So, stress is given on doing API testing so you can catch the problems where they are (Wrong information on UI). Actual reason is API is returning wrong info(sometimes).

Concepts

let’s first understand some concepts which can help us in perspective to the methods

Note:- if you find any mistakes in this post, do comment, or ping me on LinkedIn, I will correct it.

Safe and Idempotent
Safe and Idempotent

Get

Get Method
Get Method

Post

POST Method
POST Method

Patch

PATCH Method
PATCH Method

Delete

Delete Method
Delete Method

Head

HEAD Method
HEAD Method

Options

Options Method
Options Method

 

All major HTTP methods in single mind Map

HTTP-methods-mindmap
HTTP-methods-mindmap

You can read more stuff related to testing at this link(Testing tab) in home page

While doing Test Automation too, the knowledge of these methods is necessary to form various scenarios.

Example: – What if you pass POST, instead of GET, you should get 405 Method not allowed error.

It depends on implementation/context as well to mold these methods. But being a tester these questions we should be asking and try it out.

There is another post related to API testing which talks about HTTP status codes with Pneumonic to easily remember all major Status codes

If you like the post, do subscribe to my channel and blog. You may leave a comment too for any corrections/suggestions/appreciation

Subscribe to my Channel

Related Posts

One thought on “HTTP Methods

Leave a Reply

Your email address will not be published. Required fields are marked *