You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[GSoC] Updated Docs for leaderboard API and Added Docs for update avatar API (#25)
* Added Leaderboard API documentation
* Added Username Exists API documentation
* Added Nearby Edits by a User API documentation
* Added Uploads by a user API documentation
* Added Used Images by a user API documentation
* Leaderboard DB documentation
* Fixed Image load
* Update README.md
* Update DB Schema folder
* Update README.md
* Update DB Schema
* Update leaderboard.md
* Updated Docs
Copy file name to clipboardExpand all lines: API/leaderboard.md
+10-10
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ Note: If username is not already added to leaderboard then it would be added in
26
26
27
27
## Optional Paramaters
28
28
29
-
-**avatar** - This should be only used if a new user needs to be added to the leaderboard and wants a custom avatar, should be just the file name from`https://commons.wikimedia.org/wiki/File:` For example: **User-avatar_Dark.png** If no **avatar** is supplied then default one would be used i.e. **Gnome-stock_person.svg**
29
+
-**avatar** - This should be only used if a new user needs to be added to the leaderboard and wants a custom avatar, should be complete Image URL for example`https://upload.wikimedia.org/wikipedia/commons/thumb/0/0a/Gnome-stock_person.svg/200px-Gnome-stock_person.svg.png` If no **avatar** is supplied then default one would be used i.e. **https://upload.wikimedia.org/wikipedia/commons/thumb/0/0a/Gnome-stock_person.svg/200px-Gnome-stock_person.svg.png**
30
30
31
31
-**limit** - This is the limit for the number of results and should be passed along with offset, for example **5**
32
32
@@ -46,56 +46,56 @@ curl --location --request GET 'https://tools.wmflabs.org/commons-android-app/too
-**user** - This is username of the user, for example **Syced** (if username has **whitespaces** then replace them with `_` )
20
+
21
+
-**avatar** - This is url of the avatar to set, for example **https://upload.wikimedia.org/wikipedia/commons/thumb/0/0a/Gnome-stock_person.svg/200px-Gnome-stock_person.svg.png**
22
+
23
+
24
+
## Example Request
25
+
26
+
```
27
+
curl --location --request GET 'https://commons-android-app.toolforge.org/tool-commons-android-app/update_avatar.py?user=Syced&avatar=https://upload.wikimedia.org/wikipedia/commons/thumb/0/0a/Gnome-stock_person.svg/200px-Gnome-stock_person.svg.png'
0 commit comments