What is an API? Why API in ROR?
An API is an application programing interface. It’s an interface between inside and outside where outside interact with inside using codes. So the inside could be a server or devise like mobile, IPad, software libraries like Ruby on Rails, JQuery etc., interacting with HTTP through the web.
API’s are built as a component of the application. Basically we need to have a web API if we want to store and process our data in server and let any other application (web application, mobile application, iOS devices etc.) request and get data from that server if needed. These other applications can be part of your system or you can open your data for others to use.
Advantages of Building an API
We can separate the front end into Angular JS, Ember JS, or other popular client frameworks for building customized UI.
Advantages :
- Lots of flexibility
- Lower maintenance cost
- Higher scalability
- Simplicity
- API development also allows you to easily integrate other user interfaces, which saves a lot of time.
- Since the coder is sending message repeatedly with redundant information, it adds up to the bandwidth.
- Negligible latency
- Use of headers is clumsy and ties the API to HTTTP Response.
Subscribe For Latest Updates
Related Posts