mirror of
https://github.com/RGBCube/GitHubWrapper
synced 2025-05-18 06:55:09 +00:00
33 lines
No EOL
642 B
Python
33 lines
No EOL
642 B
Python
#== urls.py ==#
|
|
|
|
BASE_URL = 'https://api.github.com'
|
|
|
|
|
|
#== user urls ==#
|
|
USERS_URL = BASE_URL + '/users/{0}'
|
|
|
|
USER_HTML_URL = 'https://github.com/users/{0}'
|
|
|
|
SELF_URL = BASE_URL + '/user'
|
|
|
|
USER_REPOS_URL = USERS_URL + '/repos'
|
|
|
|
USER_ORGS_URL = USERS_URL + '/orgs'
|
|
|
|
USER_GISTS_URL = USERS_URL + '/gists'
|
|
|
|
USER_FOLLOWERS_URL = USERS_URL + '/followers'
|
|
|
|
USER_FOLLOWING_URL = USERS_URL + '/following'
|
|
|
|
|
|
#== repo urls ==#
|
|
REPOS_URL = BASE_URL + '/repos/{0}' # repos of a user
|
|
|
|
REPO_URL = BASE_URL + '/repos/{0}/{1}' # a specific repo
|
|
|
|
REPO_ISSUE_URL = REPO_URL + '/issues/{2}' # a specific issue
|
|
|
|
|
|
#== org urls ==#
|
|
ORG_URL = BASE_URL + '/orgs/{0}' |