update rest json generation

remove protocol and connectorProvider and replace it with type