If the service you write should be RESTful and you are worried about the URI format, then you should do some research on this, because the semantics of the URI are completely unrelated to REST.
The only restrictions that REST imposes on URIs are that they are considered atomic identifiers, that is, they cannot be divided into parts so that they can be understood, and that one URI identifies one and only one resource. In addition, the semantics and format of the URI are irrelevant. For REST, it is important how the client receives the URI. If they read URI patterns from the documentation and fill placeholders with values, then this is not RESTful. You should do some HATEOAS research if this is new to you.
source share