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:
- GET /customers/me
- GET /customers/self
- GET /customers/this
I have used 'me' a few times and the API consumers were fine with this. Thoughts?