REST api vs REST Webservice vs RESTFul web service
API means Application Programming Interface. A REST API or RESTful API is an API that is compliant to REST. REST is usually implemented using web technology, but REST does not strictly require web technology to be used. An example of a RESTful API is a RESTful web service or a set of RESTful web services.
To summarize:
- REST API = RESTful API
- REST Web service = RESTful Web service
- A set of one or more logically related RESTful Web services is an example of a RESTful API
A RESTful web service is the implementation of the REST API (Application Programmable Interface) or the REST spec. In this case you are also creating an API with your endpoints that you create. In a sense they are actually the same thing and are just two terms that are interchangeable in the context of your question. The wording may be a little confusing but tl;dr; RESTful Web Service == REST API == REST Web Service
for this situation
Outside of the context of the OP's question an API is not the same as a Web Service. An API can mean any interface or library used to interact with anything from code. This can be a smart dishwasher API or Web Sockets or cell phone SMS or even jQuery. In that same sense a Web Service is just a kind of API that provides information over the web.