* 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)