Per Spring Data REST [docs][1], if using *application.properties*, use this property to set your base path:
spring.data.rest.basePath=/api
But note that Spring [uses][2] [relaxed binding][3], so this variation can be used:
spring.data.rest.base-path=/api
... or this one if you prefer:
spring.data.rest.base_path=/api
If using *application.yml*, you would use colons for key separators:
spring:
data:
rest:
basePath: /api
(For reference, a related [ticket][4] was created in March 2018 to clarify the docs.)
[1]:
[To see links please register here]
[2]:
[To see links please register here]
[3]:
[To see links please register here]
[4]:
[To see links please register here]