CURL API Testing, We will learn about what is curl, How to use HTTP methods with the CURL like GET,POST,PATCH, PUT,DELETE.
What is curl?
curl is used in command lines or scripts to transfer data. curl is also used in cars, television sets, routers, printers, audio equipment, mobile phones
https://curl.se/
What is GET Request?
The HTTP GET method is used to **read** (or retrieve) a representation of a resource. In the “happy” (or non-error) path, GET returns a representation in XML or JSON and an HTTP response code of 200 (OK).
What is POST Request?
The POST verb is most-often utilized to **create** new resources. In particular, it's used to create subordinate resources. That is, subordinate to some other (e.g. parent) resource. In other words, when creating a new resource, POST to the parent and the service takes care of associating the new resource with the parent, assigning an ID (new resource URI), etc.
What is PATCH Request?
PATCH is used for **modify** capabilities. The PATCH request only needs to contain the changes to the resource, not the complete resource.
What is Delete Request?
DELETE is pretty easy to understand. It is used to **delete** a resource identified by a URI.
What is PUT Request?
PUT is most-often utilized for **update** capabilities, PUT-ing to a known resource URI with the request body containing the newly-updated representation of the original resource.
However, PUT can also be used to create a resource in the case where the resource ID is chosen by the client instead of by the server. In other words, if the PUT is to a URI that contains the value of a non-existent resource ID. Again, the request body contains a resource representation. Many feel this is convoluted and confusing. Consequently, this method of creation should be used sparingly, if at all.
Put VS Patch vs post
POST creates an item in a collection. PUT replaces an item. PATCH modifies an item.
We are going to lean, HTTP in Hindi, This is Day 3 of the 30 days of API Testing challenge Series with Rest Assured.
Where will learn the Basics before jumping to API Automation.
Download notes : https://sdet.live/notes
What is HTTP?
HTTP stands for Hyper Text Transfer Protocol
WWW is about communication between web clients and servers
Communication between client computers and web servers is done by sending HTTP Requests and receiving HTTP Responses
What’s in an HTTP request?
An HTTP request is the way internet communications platforms such as web browsers ask for the information they need to load a website.
Each HTTP request made across the Internet carries with it a series of encoded data that carries different types of information. A typical HTTP request contains:
HTTP version type
a URL
an HTTP method
HTTP request headers
Optional HTTP body.
What is HTTP cookie?
An HTTP cookie (also called web cookie, Internet cookie, browser cookie, or simply cookie) is a small piece of data sent from a website and stored on the user's computer by the user's web browser while the user is browsing.
Read more - https://www.cloudflare.com/learning/ddos/glossary/hypertext-transfer-protocol-http/
Time Jump
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
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
#restassured #restassuredtutorial #apitesting #api #automationtesting #manualtesting #testautomation #thetestingacademy #scrolltest
Tools and services I recommend:
Some of the courses that I recommend to become better Automation Tester
Learn Jenkins for QA -
https://bit.ly/learnjenkins-p1
Programming Java -
https://bit.ly/learnjava2020-p1
Test Automation -
https://bit.ly/learnautomation2020
API Testing -
https://www.learnapitesting.com
Cypress Tutorial with LIVE Projects -
https://cypresstutorial.com
REST API testing with Python -
https://masterapitesting.com
PS: Some of the links in this description are affiliate links that I get a kickback from
#restassured #apitesting #hindiapitesting #apitestinghindi