a rest service is used for code example
Example: rest api
Representational state transfer is a software architectural style that defines
a set of constraints to be used for creating Web services.
Web services that conform to the REST architectural style, called RESTful Web
services, provide interoperability between computer systems on the internet