r/learnjava • • 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

17 comments sorted by

View all comments

-1

u/v4dk4n Feb 08 '23

API is the interface with which you can communicate with a server. In practice this means the endpoints of the application, the controller methods, plus login, logout.

REST is a specification.

The more you comply with this specification, the more your application is RESTful.