API link resource, but it no good code