Where can I find the source code for Kubernettes Dashboard API

Regarding the Kubernetes Dashboard, there are API endpoints that return in JSON format various information for the deployments (labels, metadata etc.). The format of the URL is /api/v1/deployment/{namespace}

Excuse me for my ignorance, but would you be able to help me locate the file in the source code that is responsible for returning the response for that URL endpoint? I’ve spend much time looking for it without any luck.

Thank you!