A list of legacy namespaces.

The community UI has a view to list all legacy authors. Each author is clickable and brings the browser to a page with a list of roles created by the author.

Rather than make a hacky unmaintable viewset that aggregates usernames from the roles, this viewset goes directly to the legacy namespace/user table.

We do not want to create this view from v3 namespaces because many/most legacy namespaces do not conform to the v3 namespace character requirements.

TODO: allow edits of the avatar url TODO: allow mapping to a real namespace

GET /api/v1/namespaces/?format=api&page=255
HTTP 200 OK
Allow: GET, POST, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "count": 25404,
    "next": null,
    "previous": "http://galaxy.ansible.com/api/v1/namespaces/?format=api&page=254",
    "results": [
        {
            "id": 25512,
            "url": "",
            "summary_fields": {
                "owners": [
                    {
                        "id": 34362,
                        "username": "vaibhavgupta04"
                    }
                ],
                "provider_namespaces": [
                    {
                        "id": 34963,
                        "name": "vaibhavgupta04",
                        "pulp_href": "/api/pulp/api/v3/pulp_ansible/namespaces/34963/"
                    }
                ]
            },
            "created": "2025-12-19T14:26:26.534256Z",
            "modified": "2025-12-19T14:26:26.556266Z",
            "name": "vaibhavgupta04",
            "avatar_url": "https://github.com/vaibhavgupta04.png",
            "related": {
                "provider_namespaces": null,
                "content": null,
                "owners": "/api/v1/namespaces/25512/owners/"
            }
        },
        {
            "id": 25513,
            "url": "",
            "summary_fields": {
                "owners": [
                    {
                        "id": 34363,
                        "username": "KimetiK"
                    }
                ],
                "provider_namespaces": [
                    {
                        "id": 34964,
                        "name": "kimetik",
                        "pulp_href": "/api/pulp/api/v3/pulp_ansible/namespaces/34964/"
                    }
                ]
            },
            "created": "2025-12-19T15:32:52.880142Z",
            "modified": "2025-12-19T15:32:52.895203Z",
            "name": "KimetiK",
            "avatar_url": "https://github.com/KimetiK.png",
            "related": {
                "provider_namespaces": null,
                "content": null,
                "owners": "/api/v1/namespaces/25513/owners/"
            }
        },
        {
            "id": 25514,
            "url": "",
            "summary_fields": {
                "owners": [
                    {
                        "id": 34364,
                        "username": "lukeybe543"
                    }
                ],
                "provider_namespaces": [
                    {
                        "id": 34965,
                        "name": "lukeybe543",
                        "pulp_href": "/api/pulp/api/v3/pulp_ansible/namespaces/34965/"
                    }
                ]
            },
            "created": "2025-12-19T18:48:21.373026Z",
            "modified": "2025-12-19T18:48:21.374550Z",
            "name": "lukeybe543",
            "avatar_url": "https://github.com/lukeybe543.png",
            "related": {
                "provider_namespaces": null,
                "content": null,
                "owners": "/api/v1/namespaces/25514/owners/"
            }
        },
        {
            "id": 25515,
            "url": "",
            "summary_fields": {
                "owners": [
                    {
                        "id": 34365,
                        "username": "JPechberty"
                    }
                ],
                "provider_namespaces": [
                    {
                        "id": 34966,
                        "name": "jpechberty",
                        "pulp_href": "/api/pulp/api/v3/pulp_ansible/namespaces/34966/"
                    }
                ]
            },
            "created": "2025-12-19T21:33:32.872662Z",
            "modified": "2025-12-19T21:33:32.874121Z",
            "name": "JPechberty",
            "avatar_url": "https://github.com/JPechberty.png",
            "related": {
                "provider_namespaces": null,
                "content": null,
                "owners": "/api/v1/namespaces/25515/owners/"
            }
        }
    ]
}