mardi 23 février 2021

API Endpoint URL Difference between resourceName/create [POST] vs resourceName [POST]

I would like to know is it better to use

sku/article/create [POST]

or

/sku/article [POST]

In the first URL I specify the action, is that considered a good practice? I've seen both been used consistently, do people specify action specifically to increase code readability? What is the purpose of it?

Aucun commentaire:

Enregistrer un commentaire