Update api.jade

rename 'attachSpring' to 'direction'.