Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API to list reports submitted by a given reporter e-mail #30

Open
preaction opened this issue Jun 18, 2018 · 0 comments
Open

API to list reports submitted by a given reporter e-mail #30

preaction opened this issue Jun 18, 2018 · 0 comments

Comments

@preaction
Copy link
Member

The reporter e-mail address is presently the only unique ID we have for them. We should create a new API that allows reporters to view a paginated list of all the reports we've seen from them.

The API should be GET /v3/reporter/{email}. The API should return a list of the 100 most recent report summaries by that tester (this API should use CPAN::Testers::Schema::ResultSet::Stats module).

Passing the limit query parameter will change how many reports are returned. Passing the offset query parameter will skip that many reports. Through these two parameters, a user can paginate through all of their reports (if they so choose).

Passing the since query parameter should restrict the result set to only those reports submitted since the given ISO8601 date/time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant