When comparing API Platform vs Sinatra, the Slant community recommends Sinatra for most people. In the question“What are the best web frameworks to create a web REST API?” Sinatra is ranked 18th while API Platform is ranked 37th. The most important reason people chose Sinatra is:
Since it has very few dependencies, the loading time for a Sinatra app is considerably small.
Ranked in these QuestionsQuestion Ranking
Pros
Pro Self-documented API
Pro Very little code to set up an api and still highly customizable
Pro Based on Symfony Framework
Pro Small loading time
Since it has very few dependencies, the loading time for a Sinatra app is considerably small.
Pro Has only the bare minimum needed
Sinatra has taken an approach of having only the most useful components needed to build applications out of the box. It has simple routes along with a Domain Specific Language over a Rack layer.
Cons
Con Based on Symfony Framework
Con Hard to scale well
Because it's rather small and minimalistic, scaling up is not very easy with Sinatra. You need a great deal of knowledge on libraries and modules that may be useful for your particular use-case. As your application grows larger it may be hard to keep things clean and minimalistic, losing a lot of the advantages that Sinatra has.