API? #10

Closed
SineSwiper opened this Issue Jul 17, 2012 · 3 comments

Comments

Projects
None yet
2 participants
Contributor

SineSwiper commented Jul 17, 2012

I know you were talking about already having some form of an API out there. How complete is that? I had an idea for a Dist::Zilla module that would search for plugins of a certain type, but that would involve searching roles like:

http://grep.cpan.me/?q=^with[\s\%27\%22]%2BDist%3A%3AZilla%3A%3ARole%3A%3AReleaser

Owner

dgl commented Jul 24, 2012

It's now live (although it's a little raw even for an API, suggestions/pull requests welcome):

http://grep.cpan.me/api?q=with%5Cs%2B%5B%27%22%5DDist%3A%3AZilla%3A%3ARole%3A%3AReleaser

(I made your regex less greedy so it is a little faster).

Contributor

SineSwiper commented Jul 25, 2012

What's the JSON writer? Can "pretty mode" be turned on? I can let WWW::Mechanize::Cached::Gzip handle the re-compression of tabs/spaces.

@dgl dgl added a commit that referenced this issue Jul 26, 2012

@dgl dgl Use pretty JSON
(See issue #10)
764844b
Owner

dgl commented Jul 26, 2012

Personally I'd just pipe via json_reformat, but I guess it doesn't hurt anything, on now (although I don't think the server will do gzip anyway).

dgl closed this in 741a6f3 Jul 26, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment