filmov
tv
GraphQL vs REST APIs | What's the Best Kind of API?

Показать описание
In this video, I explain what GraphQL and REST APIs are, how it works and which is the best way of API for your projects.
In REST architecture, APIs expose their functionality as resources, which are any type of service, data, or object that a client can access. Every resource comes with its own unique URI (Uniform Resource Identifier) that a client can access by sending a request to the server.
So, whenever a client calls a RESTful API, the server will respond with a representation of the state of the queried resource. Many common REST implementations utilise the standard HTTP methods (GET, POST, PUT, DELETE, and PATCH) to call a server.
In GraphQL, a set of information is seen in the context of a graph, just as the name suggests. Nodes, which are defined using the GraphQL schema system, represent objects. And edges represent the connection between nodes in the graph. This enables clear relationships between queries and increases the connectivity between objects.
GraphQL allows users to request data from several resources using a single request. Rather than making multiple requests to fetch data, you can use it to make ad-hoc queries to a single endpoint and access all the required data.
Timestamps:
0:00 Video Starts
0:37 REST API
2:20 REST is a convention
3:09 REST Status Codes
5:19 GraphQL
7:17 GraphQL Query
10:26 GraphQL is Schema Based
11:38 GraphQL Mutations
13:05 Conclusion
14:43 Outro
👉 Checkout codedamn on social:
If you found the video valuable, please leave a like and subscribe ❤️ It helps the channel grow and helps me pumping out more such content.
👋 About Me:
Hey! I'm Mehul Mohan, a CSE'21 graduate from BITS Pilani, Goa. I started coding early in life, at the age of 13 when I created my first blog on Blogger. I am listed in Google, Microsoft, Sony, eSet, etc. Hall of Fame for reporting vulnerabilities in their systems.
🍎 I am Apple's WWDC'19 Scholar - visited San Francisco and attended WWDC.
🚀 Currently working on my own startup - codedamn.
Connect with me:
🏷 Video Tags:
GraphQL vs REST APIs | What's the Best Kind of API?
graphql vs rest
GraphQL vs. REST: A Comprehensive Comparison
graphql vs rest api
rest api tutorial
rest api explained
rest vs graphql 2021
rest vs graphql api
what is graphql and why use it
what is rest api
rest api tutorial for beginners
In REST architecture, APIs expose their functionality as resources, which are any type of service, data, or object that a client can access. Every resource comes with its own unique URI (Uniform Resource Identifier) that a client can access by sending a request to the server.
So, whenever a client calls a RESTful API, the server will respond with a representation of the state of the queried resource. Many common REST implementations utilise the standard HTTP methods (GET, POST, PUT, DELETE, and PATCH) to call a server.
In GraphQL, a set of information is seen in the context of a graph, just as the name suggests. Nodes, which are defined using the GraphQL schema system, represent objects. And edges represent the connection between nodes in the graph. This enables clear relationships between queries and increases the connectivity between objects.
GraphQL allows users to request data from several resources using a single request. Rather than making multiple requests to fetch data, you can use it to make ad-hoc queries to a single endpoint and access all the required data.
Timestamps:
0:00 Video Starts
0:37 REST API
2:20 REST is a convention
3:09 REST Status Codes
5:19 GraphQL
7:17 GraphQL Query
10:26 GraphQL is Schema Based
11:38 GraphQL Mutations
13:05 Conclusion
14:43 Outro
👉 Checkout codedamn on social:
If you found the video valuable, please leave a like and subscribe ❤️ It helps the channel grow and helps me pumping out more such content.
👋 About Me:
Hey! I'm Mehul Mohan, a CSE'21 graduate from BITS Pilani, Goa. I started coding early in life, at the age of 13 when I created my first blog on Blogger. I am listed in Google, Microsoft, Sony, eSet, etc. Hall of Fame for reporting vulnerabilities in their systems.
🍎 I am Apple's WWDC'19 Scholar - visited San Francisco and attended WWDC.
🚀 Currently working on my own startup - codedamn.
Connect with me:
🏷 Video Tags:
GraphQL vs REST APIs | What's the Best Kind of API?
graphql vs rest
GraphQL vs. REST: A Comprehensive Comparison
graphql vs rest api
rest api tutorial
rest api explained
rest vs graphql 2021
rest vs graphql api
what is graphql and why use it
what is rest api
rest api tutorial for beginners
Комментарии