I am creating a RESTful web service, and some resources are computational or processing functions. For example, a user can scale and transform images through an API by sending an image and receiving a scaled or transformed image back.
According to section 2.5 of the RESTful Web Services Cookbook , I have to use GET:
Treat the processing function as a resource, and use HTTP GET to fetch a
representation containing the output of the processing function. Use query
parameters to supply inputs to the processing function.
This is clear for cases where the inputs are simple (for example, the long / lat-coordinates of a point). However, should I follow the same advice for larger input data such as images? As far as I know, it is impossible to send this data as a request parameter.
source
share