SkywardApps / popcorn

Popcorn is a .Net Middleware for your RESTful API that allows your consumers to request exactly as much or as little as they need, with no effort from you.
https://skywardapps.github.io/popcorn/
MIT License
59 stars 19 forks source link

Compare / Contrast JSON API and GraphQL #18

Closed undiwahn closed 6 years ago

undiwahn commented 7 years ago

One very obvious question that potential users will have is:

Why should I use this instead of JSON API or GraphQL?

We should address this head on in the documentation.

Some points to consider:

We need to provided researched pros and cons.

alexbarbato commented 7 years ago

Just jotting down some stuff I'm finding/thinking:

JSON API: It's a standard (that has pluses and minuses) Technically, due to the fact that JSON API is a standard, it's a bit correlary to Popcorn as we COULD make popcorn an implementation of JSON API

GraphQL: In a lot of ways this is a complete deviation from REST so I imagine it's adoption would definitely be tied heavily to someone's desire or willingness to depart REST for a newer system and way of viewing/accessing the information on the server. Performance and ease of use are certainly factors to consider (particularly with regards to .NET)