If you decide to identify the comment by its serial number, this is your preference. If in the concept of your application it makes sense to make a unique identification of the comment sequence number when it is associated with the mail identifier, this is an absolutely beautiful design if it is documented.
There are at least two major obstacles to your re-sequencing approach, which can lead to the incorrect development of your application URI. The first fall, the GET methods in the URI must be cacheable, re-ordering violates this contract because element 2 has not changed, but since element 1 you have now changed, which means / 2. Further, this will obviously lead to breaking links that people could create.
I like the concept of a query parameter for a sequence, however, I believe that from my limited understanding of your problem, it makes sense to just use identifiers simply because the two overflows that I list above are no longer problems.
source share