-
Notifications
You must be signed in to change notification settings - Fork 48
[GSoC] Updated Docs #26
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
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
61490b8
Added Leaderboard API documentation
madhurgupta10 4a0a153
Added Username Exists API documentation
madhurgupta10 94f8b1a
Added Nearby Edits by a User API documentation
madhurgupta10 5248fad
Added Uploads by a user API documentation
madhurgupta10 71876e5
Added Used Images by a user API documentation
madhurgupta10 7f91e0b
Leaderboard DB documentation
madhurgupta10 a71ab7f
Fixed Image load
madhurgupta10 6c391ac
Update README.md
madhurgupta10 011d2f7
Update DB Schema folder
madhurgupta10 5333f7e
Update README.md
madhurgupta10 c965e55
Update DB Schema
madhurgupta10 8e839ef
Merge branch 'master' of https://github.com/madhurgupta10/commons-app…
madhurgupta10 bc51e28
Update leaderboard.md
madhurgupta10 0e87922
Merge remote-tracking branch 'upstream/master'
madhurgupta10 cc0ba84
Updated Docs
madhurgupta10 c209767
Updated docs
madhurgupta10 507e206
Merge branch 'master' into master
madhurgupta10 0c08588
Update leaderboard.md
madhurgupta10 cd834b0
Update leaderboard.md
madhurgupta10 a0e9457
Update leaderboard.md
madhurgupta10 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Update Leaderboard API | ||
|
||
This API is used to update a leaderboard user data. | ||
|
||
## Base URL | ||
`https://tools.wmflabs.org/commons-android-app/tool-commons-android-app` | ||
|
||
## Endpoint | ||
`/update_leaderboard.py` | ||
|
||
## Request Type | ||
`GET` | ||
|
||
## Response Type | ||
`JSON` | ||
|
||
## Required Parameters | ||
|
||
- **user** - This is username of the user, for example **Syced** (if username has **whitespaces** then replace them with `_` ) | ||
|
||
|
||
## Example Request | ||
|
||
``` | ||
curl --location --request GET 'https://commons-android-app.toolforge.org/tool-commons-android-app/update_leaderboard.py?user=Syced' | ||
``` | ||
|
||
## Example Responses | ||
|
||
``` | ||
{ | ||
"status": "200", | ||
"message": "Data Updated", | ||
"user": "Syced" | ||
} | ||
``` | ||
|
||
**Note: Returns error if params are invalid** | ||
``` | ||
{ | ||
"status": "400", | ||
"message": "Invalid Parameters", | ||
"user": null | ||
} | ||
``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.