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

Add ChallengeSummary to Swagger #1166

Open
tordans opened this issue Jan 30, 2025 · 0 comments
Open

Add ChallengeSummary to Swagger #1166

tordans opened this issue Jan 30, 2025 · 0 comments

Comments

@tordans
Copy link
Contributor

tordans commented Jan 30, 2025

The API endpoint https://maproulette.org/api/v2/data/challenge/38309?includeByPriority=false is not documented in the Swagger Docs at https://maproulette.org/docs/swagger-ui/index.html#/

I found some hints on how to authenticate in https://github.com/maproulette/maproulette-backend/blob/main/postman/maproulette2.postman_collection.json#L4776-L4811

It provides a response like

[
    {
        "id": 38309,
        "name": "Missing buildings - Scotland",
        "actions": {
            "total": 8608,
            "available": 4021,
            "fixed": 2941,
            "falsePositive": 266,
            "skipped": 30,
            "deleted": 0,
            "alreadyFixed": 1325,
            "tooHard": 25,
            "answered": 0,
            "validated": 0,
            "disabled": 0,
            "avgTimeSpent": -451551,
            "tasksWithTime": 4587
        }
    }
]

Another thing is, that IMO this API endpoint should not require an authentication. Other endpoints like the general challenge info do not require authentication. But unfortunately that only includes very basic data on the completion state.

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