Creating a system which will responsible to allow clients to upload their receipts. I have to create a url that the client will call to generate a unique ID i.e., /system/generate_id
. The question is that should this url be GET
or POST
.
A little bit on this system. The generated url will be valid for few hours and then it will expire. The generated id will not be used to uniquely identify the receipts. The receipts will be read by another system to do some OCR processing and will be stored in some new place (where they will be corelated with user-id). The generated url can't be used to access the uploaded receipt i.e., system/<generated_id>
wouldn't exist. As a matter of fact, the system in question will be a lambda whose sole purpose is to generate the ID and that generated ID is not dependend on user, its just unique.
I know a POST
request is something which ends up creating a Child at given url and GET
is something which just returns the info. So in this case, what should be the URL type. Should it be GET
or POST