API Flashcards
1
Q
What is an API
A
Application Programming Interface - a set of rules to allow software applications to communicate and share data/functions with each other.
2
Q
What are the (3) most common APIs and when should they be used.
A
- REST - Applications with well-defined resources, strict control over usage, common for public use cases.
- GraphQL - Complex data structures where clients need to specify exactly what they want. Can optimize network usage (Fewer requests)
- RPC - High performance with direction communication between critical services.