add postprocess to api
Merge pull request #837 from Hellowlol/process_api

add postprocess to api