Move REST docs and TypeHints from server to api