Added specs for attachment API resource