ibnesayeed
Well-known member
I am a big promoter of REST APIs (not just HTTP APIs), for which there is already a very popular feature request thread, Full native RESTful API built into XenForo. However, I have been exploring Facebook's GraphQL lately and found it very interesting and efficient in certain situations. XenForo as a platform provides a very robust system to organize resources with complex relationships among them that can be visualized as a rich graph of various types of resources. When thinking about the possible usage of an XF API, mobile apps and integration with other systems come first to my mind. Being able to minimize the number of requests while also minimizing the amount of data transferred by specifying the structure and selecting attributes of the response from the client side seems like a golden opportunity that GraphQL provides.
GraphQL vs. REST is a good read to understand similarities and differences between the two.
GraphQL vs. REST is a good read to understand similarities and differences between the two.
Upvote
8