apidoc: harden the decorator stack
Avoid breaking endpoints when apidoc decorators are in the wrong order (or when an endpoint function is missing a docstring)
Test Plan
Tests to be added once we're OK with the Apidoc logic changes.
Migrated from D114 (view on Phabricator)