r/learnjava • u/[deleted] • Feb 08 '23
API, REST & RESTfull
what is the difference between API, REST and RESTful?
I was researching articles, blog and what I understood was: API is a ready-made application that can be implemented in your project. REST, an architecture that contains functions: PUT, DELETE, POST, GET, etc. RESTfull, and the application of REST.
But I'm still trying to understand what exactly an API would be? any coding that contains controller, service and model and an API?
Can I create a workshop API and then implement a front end layer on top?
44
Upvotes
5
u/meioaesmo Feb 08 '23
API means its an interface. When you call a native method from any programming language, like is_null(), you are interacting with code through an interface.
REST is a kind of API, SOAP is another one. APIs are everywhere and are basically an easier way to pass parameters and execute code.