2

I have a document where email address is the unique key and ideal for identifying the document. Can I have email address in the URI? Do I have to encode the email address.

We typically suffix with .json.

/customer/1234.json

Could I suffix uri with .com? Any best practices while using email address in uri?

/customer/abc@gmail.com

Thanks in advance!

Bhanu
  • 427
  • 2
  • 8

1 Answers1

2

I'd recommend encoding the email address before concatenating it to your uri string. fn:encode-for-uri would work, but a different encoding might work better in combination with a web interface.

HTH!

grtjn
  • 20,254
  • 1
  • 24
  • 35