distinguish proxy and server when showing resource type by API