Read 06 ~ HTTP and REST
By Abdallah obaid
NAME | URL |
---|---|
Home | Home. |
Prep | Prep: Engineering Topics. |
Read 01 | Node Ecosystem, TDD, CI/CD. |
Read 02 | Classes, Inheritance, Functional. |
Read 03 | Data Modeling & NoSQL Databases. |
Read 04 | Advanced Mongo/Mongoose. |
Read 05 | Linked Lists. |
Read 06 | HTTP and REST. |
Read 07 | Express. |
Read 08 | Express Routing & Connected API. |
Read 09 | API Server. |
Read 10 | Stacks and Queues. |
Read 11 | Authentication. |
Read 12 | OAuth. |
Read 13 | Bearer Authorization. |
Read 14 | Access Control (ACL). |
Read 15 | Trees. |
Read 16 | Event Driven Applications. |
HTTP and REST:-
## What is API:
- API stand for Application Progame Interface.
- Some how as a contract from one piece of softwar to another piece of softwar.
- Its somehow like a messenger or waiter between server and client. ## What is REST:
- Representational State Transfer.
- Architecture style for designing networked applications
- Relies on stateless, client-server protocol, almost always HTTP.
- Treats server objects as resources that can be created, updated, destroyed…
- Its use usually as json file in HTTP so it could be used virtually by any programming language. ## Endpoints:
- Endpoints is the URI/URL where api/service can be accessed by a client application, where HTTP request send to. ## HTTP:
- HTTP is a communications protocol that transports messages over a network. ## SOAP:
- SOAP is a protocol to exchange XML-based messages that can use HTTP to transport those messages. ## Difference between REST and SOAP API:
- SOAP is a protocol to exchange XML-based messages that can use HTTP to transport those messages.
- REST is a protocol to exchange any (XML or JSON) messages that can use HTTP to transport those messages. ## Swagger:
- Swagger is an open-source software framework backed by a large ecosystem of tools that helps developers design, build, document, and consume RESTful web services/API.