Skip to content

Commit

Permalink
add endpoint schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamingregory committed Mar 13, 2018
1 parent 1ab4702 commit d319dd0
Show file tree
Hide file tree
Showing 7 changed files with 412 additions and 0 deletions.
24 changes: 24 additions & 0 deletions schemas/commit_comments.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
commit_comments = [{'name': 'html_url',
'type': 'varchar'},
{'name': 'id',
'type': 'int'},
{'name': 'updated_at',
'type': 'varchar'},
{'name': 'url',
'type': 'varchar'},
{'name': 'user_id',
'type': 'int'},
{'name': 'created_at',
'type': 'varchar'},
{'name': 'path',
'type': 'varchar'},
{'name': 'position',
'type': 'varchar'},
{'name': 'author_association',
'type': 'varchar'},
{'name': 'line',
'type': 'varchar'},
{'name': 'commit_id',
'type': 'varchar'},
{'name': 'body',
'type': 'varchar'}]
48 changes: 48 additions & 0 deletions schemas/commits.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
commits = [{'name': 'commit_message',
'type': 'varchar'},
{'name': 'parents_0_sha',
'type': 'varchar'},
{'name': 'commit_verification_signature',
'type': 'varchar'},
{'name': 'commit_comment_count',
'type': 'int'},
{'name': 'commit_committer_email',
'type': 'varchar'},
{'name': 'author_id',
'type': 'int'},
{'name': 'commit_verification_verified',
'type': 'boolean'},
{'name': 'commit_author_email',
'type': 'varchar'},
{'name': 'commit_author_date',
'type': 'varchar'},
{'name': 'sha',
'type': 'varchar'},
{'name': 'commit_committer_date',
'type': 'varchar'},
{'name': 'url',
'type': 'varchar'},
{'name': 'comments_url',
'type': 'varchar'},
{'name': 'commit_url',
'type': 'varchar'},
{'name': 'commit_verification_reason',
'type': 'varchar'},
{'name': 'commit_committer_name',
'type': 'varchar'},
{'name': 'html_url',
'type': 'varchar'},
{'name': 'commit_tree_sha',
'type': 'varchar'},
{'name': 'commit_verification_payload',
'type': 'varchar'},
{'name': 'commit_tree_url',
'type': 'varchar'},
{'name': 'committer_id',
'type': 'int'},
{'name': 'commit_author_name',
'type': 'varchar'},
{'name': 'parents_0_url',
'type': 'varchar'},
{'name': 'parents_0_html_url',
'type': 'varchar'}]
22 changes: 22 additions & 0 deletions schemas/issue_comments.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
issue_comments = [{'name': 'author_association',
'type': 'varchar'},
{'name': 'body',
'type': 'text'},
{'name': 'issue_url',
'type': 'varchar'},
{'name': 'body_html',
'type': 'text'},
{'name': 'created_at',
'type': 'varchar'},
{'name': 'id',
'type': 'int'},
{'name': 'url',
'type': 'varchar'},
{'name': 'body_text',
'type': 'text'},
{'name': 'updated_at',
'type': 'varchar'},
{'name': 'user_id',
'type': 'int'},
{'name': 'html_url',
'type': 'varchar'}]
42 changes: 42 additions & 0 deletions schemas/issues.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
issues = [{'name': 'assignee_id',
'type': 'varchar'},
{'name': 'html_url',
'type': 'varchar'},
{'name': 'comments_url',
'type': 'varchar'},
{'name': 'events_url',
'type': 'varchar'},
{'name': 'title',
'type': 'varchar'},
{'name': 'user_id',
'type': 'int'},
{'name': 'comments',
'type': 'int'},
{'name': 'milestone_id',
'type': 'varchar'},
{'name': 'state',
'type': 'varchar'},
{'name': 'created_at',
'type': 'varchar'},
{'name': 'repository_url',
'type': 'varchar'},
{'name': 'body',
'type': 'text'},
{'name': 'locked',
'type': 'boolean'},
{'name': 'number',
'type': 'int'},
{'name': 'url',
'type': 'varchar'},
{'name': 'id',
'type': 'int'},
{'name': 'author_association',
'type': 'varchar'},
{'name': 'updated_at',
'type': 'varchar'},
{'name': 'labels_url',
'type': 'varchar'},
{'name': 'closed_by_id',
'type': 'varchar'},
{'name': 'closed_at',
'type': 'varchar'}]
60 changes: 60 additions & 0 deletions schemas/members.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
members = [{'name': 'name',
'type': 'varchar'},
{'name': 'login',
'type': 'varchar'},
{'name': 'organizations_url',
'type': 'varchar'},
{'name': 'created_at',
'type': 'varchar'},
{'name': 'followers_url',
'type': 'varchar'},
{'name': 'avatar_url',
'type': 'varchar'},
{'name': 'email',
'type': 'varchar'},
{'name': 'starred_url',
'type': 'varchar'},
{'name': 'blog',
'type': 'varchar'},
{'name': 'followers',
'type': 'int'},
{'name': 'repos_url',
'type': 'varchar'},
{'name': 'location',
'type': 'varchar'},
{'name': 'received_events_url',
'type': 'varchar'},
{'name': 'bio',
'type': 'varchar'},
{'name': 'events_url',
'type': 'varchar'},
{'name': 'following_url',
'type': 'varchar'},
{'name': 'company',
'type': 'varchar'},
{'name': 'gravatar_id',
'type': 'varchar'},
{'name': 'public_gists',
'type': 'int'},
{'name': 'hireable',
'type': 'varchar'},
{'name': 'html_url',
'type': 'varchar'},
{'name': 'site_admin',
'type': 'boolean'},
{'name': 'url',
'type': 'varchar'},
{'name': 'following',
'type': 'int'},
{'name': 'id',
'type': 'int'},
{'name': 'public_repos',
'type': 'int'},
{'name': 'type',
'type': 'varchar'},
{'name': 'gists_url',
'type': 'varchar'},
{'name': 'updated_at',
'type': 'varchar'},
{'name': 'subscriptions_url',
'type': 'varchar'}]
70 changes: 70 additions & 0 deletions schemas/pull_requests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
pull_requests = [{'name': 'url',
'type': 'varchar'},
{'name': 'locked',
'type': 'boolean'},
{'name': 'html_url',
'type': 'varchar'},
{'name': 'title',
'type': 'varchar'},
{'name': 'issue_url',
'type': 'varchar'},
{'name': 'merged_at',
'type': 'varchar'},
{'name': 'patch_url',
'type': 'varchar'},
{'name': 'number',
'type': 'int'},
{'name': 'statuses_url',
'type': 'varchar'},
{'name': 'author_association',
'type': 'varchar'},
{'name': '_links_html_href',
'type': 'varchar'},
{'name': 'created_at',
'type': 'varchar'},
{'name': 'review_comments_url',
'type': 'varchar'},
{'name': '_links_issue_href',
'type': 'varchar'},
{'name': '_links_comments_href',
'type': 'varchar'},
{'name': '_links_statuses_href',
'type': 'varchar'},
{'name': 'diff_url',
'type': 'varchar'},
{'name': 'state',
'type': 'varchar'},
{'name': 'base_label',
'type': 'varchar'},
{'name': 'commits_url',
'type': 'varchar'},
{'name': 'closed_at',
'type': 'varchar'},
{'name': 'assignee',
'type': 'varchar'},
{'name': '_links_self_href',
'type': 'varchar'},
{'name': 'updated_at',
'type': 'varchar'},
{'name': 'comments_url',
'type': 'varchar'},
{'name': '_links_review_comments_href',
'type': 'varchar'},
{'name': 'milestone',
'type': 'varchar'},
{'name': 'review_comment_url',
'type': 'varchar'},
{'name': 'id',
'type': 'int'},
{'name': '_links_commits_href',
'type': 'varchar'},
{'name': 'user_id',
'type': 'int'},
{'name': 'merge_commit_sha',
'type': 'varchar'},
{'name': 'head_label',
'type': 'varchar'},
{'name': '_links_review_comment_href',
'type': 'varchar'},
{'name': 'body',
'type': 'text'}]
Loading

0 comments on commit d319dd0

Please sign in to comment.