metacpan-api icon indicating copy to clipboard operation
metacpan-api copied to clipboard

rename MetaCPAN::API

Open haarg opened this issue 5 years ago • 9 comments

MetaCPAN::API is a poor choice for a package name, since there is already a module with that name on CPAN. This is confusing and could lead to weird issues if we ever pulled in a dependency that was still using MetaCPAN::API.

haarg avatar Nov 13 '18 14:11 haarg

It was chosen to be symmetric with ::Web. I see those modules are yours and are deprecated. Is there any chance we could just remove them? Otherwise, what name do you propose?

jberger avatar Nov 13 '18 14:11 jberger

I took over maintenance of MetaCPAN::API to do fixes allow it to continue working with the v1 API. It has enough code dependent on it that I have no intention of removing it.

Some names without much thought put into them: MetaCPAN::APIServer MetaCPAN::Server::API (and maybe even moving web to MetaCPAN::Server::Web) metacpan::api

haarg avatar Nov 13 '18 15:11 haarg

I like MetaCPAN::Server::API or even MetaCPAN::Service::API.

oalders avatar Nov 13 '18 16:11 oalders

MetaCPAN::App::API || MetaCPAN::WebApp::API?

Because the MetaCPAN::Server namespace is used by the Catalyst setup and will take some time before a full transition, I'd rather have some separation to avoid confusion of what belongs to which framework.

mickeyn avatar Nov 15 '18 11:11 mickeyn

I like MetaCPAN::APIServer as it's pretty explicit as to what it is, without colliding with the existing Catalyst implementation.

ssoriche avatar Nov 15 '18 16:11 ssoriche

Was this discussed / resolved at PTS 2019?

mohawk2 avatar Jun 17 '20 10:06 mohawk2

No, I don't think there's any resolution on this. MetaCPAN::APIServer seems like the most succinct of the suggestions.

oalders avatar Jun 17 '20 15:06 oalders

You're quite right it's succinct. It does read a bit wrong to me, just because I'd prefer to not combine two "words" (API and server) without a :: between. However, it's not my call :-)

mohawk2 avatar Jun 17 '20 19:06 mohawk2

Maybe MetaCPAN::Public::API

szabgab avatar Feb 20 '21 08:02 szabgab