add save document api in application controller
add save document api in application controller