I'm trying to create a restful API (using Spring Boot v2.0.0.Release), I want there to be one endpoint but I'd like there to be two possible uses:
GET /time - outputs current time (e.g. linux epoch in seconds)
GET /time?delta=100000 (time adjusted by the delta in seconds e.g. +ve=future -ve=past)
Firstly is this possible? and secondly does anyone have a code example?
your help is much appreciated