What is the industry best practice when it comes to GET or DELETE operations which need a resource identifier to be sent but that identifier needs to be secured and therefore can not be sent in as a path parameter.
For example let's say I have an API for giftcards. GET: v1/giftcards/{id} and DELETE v1/giftcards/{id}
Sending the giftcard id in the path will expose it so I want to know what is the best practice for REST Apis in these cases? Should the resource identifier be sent in as a header (even though this is not meta data)? Or should this endpoint be converted to a POST request?