api upload works for assertion verification

Change-Id: I36165dc4139645d1c169af0a3820cf77e2e2a04e
Formatting changes.

Change-Id: I3185d56323d5bd7d04c6bbf34adab54a7281005a
Merge pull request #16 from donyu/api-upload

api upload works for assertion verification