Hello @kartik,
Set it up in your application.yml (or analogical config file):
spring:
data:
rest:
basePath: /api
As I can remember that's it - all of your repositories will be exposed beneath this URI.
Hope this works!!
Get your Spring Certification today to become certified.
Thanks!