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

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -