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

9

u/ipaintfishes Feb 08 '23

An api defines a programming interface, not necessarily producing Json. A good example of a different type would be one using SOAP (xml)