I'm building a microservice, which goal is to manage a specific aspect of data for an entity. There is another microservice that manages (create and holds basic data) for that entity.
I wish that accessing an entity in my new microservice will be done using the same ID as with the other service, so that all other microservices that need to access the new service will be able to do so using the "entity's ID".
So when creating (or setting for the first time) the resource in my new service I need to already receive its "external ID". Is it "RESTful" (enough) to receive that ID as part of the POST URL, or must I omit the ID and have it set as part of the request's body?
For example, can I use this to create / set for the first time the object in my service:
POST http://domain:port/resource/:ExternalID