Updated EndpointDef to take the name of the body type entity instead of the EntityType to allow types to be resolved after all types are loaded.