Have json endpoints link back to their methods when autogenerated