Update api.md

Added simple resource documentation