rest - RESTful way to request an action? -
if part of restful api looks this:
post transactions?auth_code=[code]
and part of post email address server can send receipt , @ later time client wants have receipt sent again, how create api that? server returns transactionid post. should this:
put transactions/[transactionid]?auth_code=[code]&requestreceipt=yes
thanks.
i invert post/put calls. put create new (in case transaction email address) , post resend receipt. if post in endpoint (/transactions/[transactionid]) used resend confirmation, omit requestreceipt parameter.
Comments
Post a Comment