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.
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.
/graphql
See martinfowler.com/articles/richards...
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.
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.See martinfowler.com/articles/richards...