Wednesday, June 14, 2017

13/06/2017

API

☺HTTP - Hyper Text Transfer Protocol.
      Rules are transferring web pages to your browser.


☺Example for URL :
        http://www.codecadamy.com


☺The web pages come from other computers on the Internet called servers.


☺REST - REpresentational State Transfer.
       Set of principles.


☺API - Application Programming Interface.

☺API do,

1.Separate the client from the server.

2.Not hold state between requests.

3.Use HTTP.


☺xhr stands for XML HTTP Request.
         

☺Four HTTP verbs

1.GET - Information receives from the source.

2.POST - Sends new information to the specified source.

3.PUT - Updates existing information of the specified source.

4.DELETE -  Removes existing information from the specified source.


☺Three parts of HTTP request.

 1.Request lines -  which tells the server what kind of request is being sent (GET, POST, etc.) and what resource it's looking for.

2.Header -  which sends the server additional information (such as which client is making the request).

3.Body -  which can be empty or  contain data and information.



☺HTTP status codes

1xx: working on the request.

2xx: successfully 

3xx:  the server might have to reroute the request before it can get you the resource you asked for.

4xx:  "file not found".(user problem)

5xx:  can't successfully respond to your request.(server problem)



☺HTTP response code

1.Response line: which includes the three-digit HTTP status code.

2.Header:  which includes further information about the server.

3.Body:  which includes further information about the server



☺XML : Extensible Markup Language.
    It is very similar to HTML.
 




 
      

No comments:

Post a Comment

HTML introduction

HTML stands for Hyper Text Markup Language. HTML describes the structure of web page using markup. HTML elements are the building blo...