api doc: update function for  spec:make