I'd like to use a a client external to the Kubernetes cluster to fetch all configured resources in a particular namespace, so the equivalent of the kubectl command below using curl or the fabric8 k8s client.
kubectl api-resources --verbs=list --namespaced -o name | xargs -n 1 kubectl get --show-kind --ignore-not-found -n <namespace>