A comparison of API styles: SOAP, REST, GraphQL, and RPC.
The diagram above illustrates the API timeline and API styles comparison.
Over time, different API architectural styles are released. Each of them has its own patterns of standardizing data exchange.
You can check out the use cases of each style in the diagram.