Designing a REST API path for importing products from an csv file -
in application, upload csv file having products using html file upload. internal worker process gets notification via trigger file directory file upload completed. @ point internal worker process calls rest api (with name of file only) start processing csv file insert database.
i don't know whether call process csv file restful. came following paths considering products resource. design restful? if not restful, shouldn't use behavior rest use wcf or such rpc calls.
http://localhost/products/import/productsfile.csv *(get method)* http://localhost/products/productsfile.csv/import *(get method)* http://localhost/products/ *(post method name of file)*
Comments
Post a Comment