Sorry, guess that description can be misleading because of how I am referring to rest Api and what Rest Api is defined as. I mean in terms of a making Api's and or making Api calls. To re-phrase my question, What role does Ruby classes play in handling Api creation and Api requests?
What role does Ruby classes play in handling Api creation?
In our context, a Ruby class is one of the prerequisites to create an API
What role does Ruby classes play in handling Api requests?
The request comes as plain text. But then it gets transformed into an object that is made of a Ruby class. Like a Hash for example.
You mentioned classes and handling requests. So here's what I think this means in practice in Ruby on Rails: ActionDispatch::Http::Request.
The mechanics of it uses Controllers in Rails case. Assuming that's what you're learning. I recommend a read at Rails guides for further clarification.
Sorry, guess that description can be misleading because of how I am referring to rest Api and what Rest Api is defined as. I mean in terms of a making Api's and or making Api calls. To re-phrase my question, What role does Ruby classes play in handling Api creation and Api requests?
All good :)
In our context, a Ruby class is one of the prerequisites to create an API
The request comes as plain text. But then it gets transformed into an object that is made of a Ruby class. Like a Hash for example.
You mentioned classes and handling requests. So here's what I think this means in practice in Ruby on Rails: ActionDispatch::Http::Request.
The mechanics of it uses Controllers in Rails case. Assuming that's what you're learning. I recommend a read at Rails guides for further clarification.
This is exactly what I was looking for thank you.