(Issue #752) Add user-side /data/interests (JSON), remove site-side /misc/interestdata

Add a JSON API endpoint for retrieving user interests, and remove the old script.

No replacement is being made for the previous ?int= functionality to find the count for a single interest; this was apparently rarely used.

The new file is based on the Edges.pm file, so I've left the credits for that file as I'm not sure how much of the stuff I deleted is theirs. (Commit b879927 shows the exact amount that was deleted.)

Fixes #752.


Ah I meant Base sorry! ::Base is fine, ::Apache2 is fine, leave
them be :) I'm only concerned with having something readable in
the caller.



On Wed, Jun 25, 2014, at 03:38 AM, Sophira wrote:

  In cgi-bin/DW/Request/Apache2.pm:
> @@ -264,6 +264,10 @@ sub NOT_FOUND {
>      return Apache2::Const::NOT_FOUND;
>  }
>
> +sub HTTP_GONE {
> +    return Apache2::Const::HTTP_GONE;

  I'm not altogether sure how happy I am with relying on
  Apache2::Const here and plain numbers in DW::Request::Base,
  even though these numbers aren't going to change. If they're
  all in ::Base anyway, though, should we be getting rid of
  all of these subs in ::Apache2, since they serve no
  additional purpose?

  —

Reply to this email directly or [1]view it on GitHub.

References

1. https://github.com/dreamwidth/dw-free/pull/757/files#r14178603