add api autoreload process
finish if statement
Merge pull request #1035 from achamely/master

add api autoreload process