jeudi 31 janvier 2019

Preferable naming conventions for links in Microsoft Web API development?

Taking in consideration future flexibility of the API for upgrades, what would you consider the preferable naming convention for the links?

I have came across different solutions so far:

https://my.site.com/getProduct/{id}
https://my.site.com/Product/GetData/{id}
https://my.site.com/product/{id}/get_data

Underscores, camelcase, lowercase, parameters after or before object name etc. - these are questions that I'm finding the answer to.

I do not expect this to yield 1 answer anyone could consider the best, but I would like to find out how other developers handle these struggles.




Aucun commentaire:

Enregistrer un commentaire