Mau*_*sen 5 rest restful-architecture
我正在创建RESTful Web服务,其中一些资源是计算或处理功能.例如,用户可以通过提交图像并接收缩放或转换的图像来缩放和转换图像.
根据RESTful Web Services Cookbook第2.5节,我应该使用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.
Run Code Online (Sandbox Code Playgroud)
对于输入很简单的情况(例如点的长/纬度坐标),这很明显.但是,我应该对图像等较大的输入采用相同的建议吗?据我所知,不可能将这么多数据作为查询参数发送.