• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
sitecountry_logo

What is GraphQL and REST

Scheduled Pinned Locked Moved Public/Premium/Elite Cloud
2 Posts 2 Posters 173 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jatin191
    wrote on last edited by
    #1

    What is GraphQL and REST?

    1 Reply Last reply
    0
  • A Offline
    A Offline
    ayush03
    wrote on last edited by
    #2

    GraphQL and REST are popular API protocols used by developers to build web applications that access data from web servers through the internet.

    REST (Representational State Transfer) is a standard architecture for building web services using HTTP protocols. RESTful web services enable clients to perform CRUD (Create, Read, Update, Delete) operations using standard HTTP methods, such as GET, POST, PUT, and DELETE, which corresponds to the databases’ operations.
    REST is stateless, meaning it does not maintain any context information between requests. It is widely used, and it’s relatively easy to implement request and response, making it a simple and popular choice in many web services.

    GraphQL is a relatively new API protocol developed by Facebook in 2012 as a solution to handle the scalability issues associated with REST APIs. GraphQL uses a single API endpoint to fetch only the data that's required and eliminates extraneous data. This makes GraphQL more efficient and faster than RESTful APIs. Additionally, GraphQL allows developers to query multiple data sources with a single API request, enabling more sophisticated data retrieval by reducing traffic and data redundancy to the server.

    In summary, REST and GraphQL are among the most widely used API protocols for communicating with web servers to exchange data. While REST is a standard architectural solution to building web services, GraphQL is relatively new, optimized for performance, and fetches only the data needed by the client, thereby making it more efficient, flexible, and scalable.

    1 Reply Last reply
    0

  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups