0% found this document useful (0 votes)
2 views

API Testing Notes (1)

The document outlines the structure of API projects, referred to as 'collections', which contain documents with a BASEURL and endpoints. Each endpoint requires a request type corresponding to CRUD methods: get, post, put, patch, and delete, with specific functions for each type. It also explains response codes for API interactions and provides a homework assignment to create various requests using a specified URL.

Uploaded by

duaa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

API Testing Notes (1)

The document outlines the structure of API projects, referred to as 'collections', which contain documents with a BASEURL and endpoints. Each endpoint requires a request type corresponding to CRUD methods: get, post, put, patch, and delete, with specific functions for each type. It also explains response codes for API interactions and provides a homework assignment to create various requests using a specified URL.

Uploaded by

duaa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

* each project we call it as "collection"

*each project has a document

* each document has inside it a BASEURL ( sometimes you can see that the document
dosen't have a baseURL so the URL of the document is the baseURL)

https://jsonplaceholder.typicode.com/

*each BASEURL is followed by an endpoint ( sometimes you can see that the endpoint
has two different names (resource,service)

https://jsonplaceholder.typicode.com/comments

* each endpoint suppose to have request

*each request has a type and this type is going to be one of the following

get,post,put,patch, delete --- are the same as the Crud Methods below

get : retireve the data for me ( get me the data) for example if you search about
someone on Facebook

post : i need to add a certian data ( for example sign up on facebook )

put : it will update one record for you ( for example update your name on
facebook ) ( it will insert and then update incase the record was not there)
patch : it will update one record for you ( for example update your name on
facebook ) ( it will give me an error incase there is no record to update )

delete : it will delete some data for me ( for example delete one friend from your
facebook friendlist )

* API is stands for

{{

application program interface

the response code shall be one of the following


100-199 informative not important
200-299 it means everything is ok the request is passed

300-399 - it means the website is redirecting you to another page

400-499 it means that we have a problem from ourside (client side error)
500-599 it means that the problem from the server itself ( server side error)

seven Json viwer

crud methods ==== API methods

create ===== post


read ==-=== get
update ----- patch / put
delete ===== delete

HomeWork

https://reqres.in/

you need to create 5 request ( get , post, put ,patch,delete)

You might also like