DEV Community

Discussion on: Please explain, what is HATEOAS?

louy2 profile image
Yufan Lou

If the GraphQL endpoint only receives queries by GET verb and mutations by POST verb I'd say it is also RESTful. 🤷‍♂️

The principle behind RESTful, namely stateless protocol driving stateful application, is seen in places like Clojure, Flux.

rhymes profile image

Yufan, not really, as one of the principles of REST is the representation of resources by addressable URIs. GraphQL uses /graphql (or whatever it has been decided) for everything. It's more similar to SOAP in that regard.