REST API is an architectural style described by Roy Fielding in 2000.
Resources and verbs
Every resource has a URL. Standard HTTP verbs — GET, POST, PUT, DELETE — manipulate it.
When to use GraphQL
When clients need different subsets of the data, GraphQL is often a better fit.