0

GET /customers/{customer-id}

I am designing an API where the customer gets identified with the Authorization token passed in the request header. This means the above API doesn't require the customer-id in the URI.

Wondering what is recommended or the best options? These are some of the options which I can think of:

  1. GET /customers/me
  2. GET /customers/self
  3. GET /customers/this

I have used 'me' a few times and the API consumers were fine with this. Thoughts?

rai.skumar
  • 10,309
  • 6
  • 39
  • 55

0 Answers0