diff --git a/progress.png b/progress.png index 93ba260..e5b33a4 100644 Binary files a/progress.png and b/progress.png differ diff --git a/src/bin/missing_models.txt b/src/bin/missing_models.txt index a6cb2ef..e69de29 100644 --- a/src/bin/missing_models.txt +++ b/src/bin/missing_models.txt @@ -1,27 +0,0 @@ -FilesResponse -GitignoreTemplateInfo -IssueConfig -IssueConfigContactLink -IssueConfigValidation -IssueDeadline -IssueMeta -LabelTemplate -LicenseTemplateInfo -LicensesTemplateListEntry -MarkdownOption -MarkupOption -NewIssuePinsAllowed -NodeInfo -NodeInfoServices -NodeInfoSoftware -NodeInfoUsage -NodeInfoUsageUsers -NotificationCount -NotificationSubject -NotificationThread -NotifySubjectType -RenameUserOption -ServerVersion -TimeStamp -TopicResponse -WikiPageMetaData \ No newline at end of file diff --git a/src/types/api/files_response.rs b/src/types/api/files_response.rs new file mode 100644 index 0000000..f24a82c --- /dev/null +++ b/src/types/api/files_response.rs @@ -0,0 +1,10 @@ +//FilesResponse{ +//description: +//FilesResponse contains information about multiple files from a repo +// +//commit FileCommitResponse contains information generated from a Git commit for a repo's file.{...} +//files [ +//x-go-name: Files +//ContentsResponse{...}] +//verification PayloadCommitVerification{...} +//} diff --git a/src/types/api/gitignore_tempalte_info.rs b/src/types/api/gitignore_tempalte_info.rs new file mode 100644 index 0000000..2175e88 --- /dev/null +++ b/src/types/api/gitignore_tempalte_info.rs @@ -0,0 +1,7 @@ +//GitignoreTemplateInfo{ +//description: +//GitignoreTemplateInfo name and text of a gitignore template +// +//name string +//source string +//} diff --git a/src/types/api/issue_config.rs b/src/types/api/issue_config.rs new file mode 100644 index 0000000..d5a3518 --- /dev/null +++ b/src/types/api/issue_config.rs @@ -0,0 +1,6 @@ +//IssueConfig{ +//blank_issues_enabled boolean +//contact_links [ +//x-go-name: ContactLinks +//IssueConfigContactLink{...}] +//} diff --git a/src/types/api/issue_config_contact_link.rs b/src/types/api/issue_config_contact_link.rs new file mode 100644 index 0000000..690ae33 --- /dev/null +++ b/src/types/api/issue_config_contact_link.rs @@ -0,0 +1,5 @@ +//IssueConfigContactLink{ +//about string +//name string +//url string +//} diff --git a/src/types/api/issue_config_validation.rs b/src/types/api/issue_config_validation.rs new file mode 100644 index 0000000..11e6b81 --- /dev/null +++ b/src/types/api/issue_config_validation.rs @@ -0,0 +1,4 @@ +//IssueConfigValidation{ +//message string +//valid boolean +//} diff --git a/src/types/api/issue_deadline.rs b/src/types/api/issue_deadline.rs new file mode 100644 index 0000000..f0f6306 --- /dev/null +++ b/src/types/api/issue_deadline.rs @@ -0,0 +1,6 @@ +//IssueDeadline{ +//description: +//IssueDeadline represents an issue deadline +// +//due_date string($date-time) +//} diff --git a/src/types/api/issue_meta.rs b/src/types/api/issue_meta.rs new file mode 100644 index 0000000..4980319 --- /dev/null +++ b/src/types/api/issue_meta.rs @@ -0,0 +1,8 @@ +//IssueMeta{ +//description: +//IssueMeta basic issue information +// +//index integer($int64) +//owner string +//repo string +//} diff --git a/src/types/api/label_template.rs b/src/types/api/label_template.rs new file mode 100644 index 0000000..2330374 --- /dev/null +++ b/src/types/api/label_template.rs @@ -0,0 +1,11 @@ +//LabelTemplate{ +//description: +//LabelTemplate info of a Label template +// +//color string +//example: 00aabb +//description string +//exclusive boolean +//example: false +//name string +//} diff --git a/src/types/api/license_template_info.rs b/src/types/api/license_template_info.rs new file mode 100644 index 0000000..9c82d28 --- /dev/null +++ b/src/types/api/license_template_info.rs @@ -0,0 +1,10 @@ +//LicenseTemplateInfo{ +//description: +//LicensesInfo contains information about a License +// +//body string +//implementation string +//key string +//name string +//url string +//} diff --git a/src/types/api/licenses_template_list_entry.rs b/src/types/api/licenses_template_list_entry.rs new file mode 100644 index 0000000..7417770 --- /dev/null +++ b/src/types/api/licenses_template_list_entry.rs @@ -0,0 +1,8 @@ +//LicensesTemplateListEntry{ +//description: +//LicensesListEntry is used for the API +// +//key string +//name string +//url string +//} diff --git a/src/types/api/markdown_option.rs b/src/types/api/markdown_option.rs new file mode 100644 index 0000000..e0b2283 --- /dev/null +++ b/src/types/api/markdown_option.rs @@ -0,0 +1,25 @@ +//MarkdownOption{ +//description: +//MarkdownOption markdown options +// +//Context string +//Context to render +// +//in: body +// +//Mode string +//Mode to render (comment, gfm, markdown) +// +//in: body +// +//Text string +//Text markdown to render +// +//in: body +// +//Wiki boolean +//Is it a wiki page ? +// +//in: body +// +//} diff --git a/src/types/api/markup_option.rs b/src/types/api/markup_option.rs new file mode 100644 index 0000000..7c880d6 --- /dev/null +++ b/src/types/api/markup_option.rs @@ -0,0 +1,30 @@ +//MarkupOption{ +//description: +//MarkupOption markup options +// +//Context string +//Context to render +// +//in: body +// +//FilePath string +//File path for detecting extension in file mode +// +//in: body +// +//Mode string +//Mode to render (comment, gfm, markdown, file) +// +//in: body +// +//Text string +//Text markup to render +// +//in: body +// +//Wiki boolean +//Is it a wiki page ? +// +//in: body +// +//} diff --git a/src/types/api/mod.rs b/src/types/api/mod.rs index deb5d44..38541fb 100644 --- a/src/types/api/mod.rs +++ b/src/types/api/mod.rs @@ -51,6 +51,7 @@ pub mod access_token; /* to-todo */ pub mod file_delete_response; /* to-todo */ pub mod file_link_response; /* to-todo */ pub mod file_response; +/* to-todo */ pub mod files_response; /* to-todo */ pub mod general_api_settings; /* to-todo */ pub mod git_blob; /* to-todo */ pub mod git_entry; @@ -58,19 +59,40 @@ pub mod access_token; /* to-todo */ pub mod git_object; /* to-todo */ pub mod git_ref; /* to-todo */ pub mod git_tree; +/* to-todo */ pub mod gitignore_tempalte_info; /* to-todo */ pub mod gpg_key; /* to-todo */ pub mod gpg_key_email; /* to-todo */ pub mod heat_map; /* to-todo */ pub mod identity; /* to-todo */ pub mod issue; +/* to-todo */ pub mod issue_config; +/* to-todo */ pub mod issue_config_contact_link; +/* to-todo */ pub mod issue_config_validation; +/* to-todo */ pub mod issue_deadline; /* to-todo */ pub mod issue_form_field; /* to-todo */ pub mod issue_form_field_type; +/* to-todo */ pub mod issue_meta; /* to-todo */ pub mod issue_template; /* to-todo */ pub mod issue_template_labels; +/* to-todo */ pub mod label_template; +/* to-todo */ pub mod license_template_info; +/* to-todo */ pub mod licenses_template_list_entry; +/* to-todo */ pub mod markdown_option; +/* to-todo */ pub mod markup_option; /* to-todo */ pub mod merge; /* to-todo */ pub mod migration; /* to-todo */ pub mod milestone; +/* to-todo */ pub mod new_issue_pins_allowed; +/* to-todo */ pub mod node_info; +/* to-todo */ pub mod node_info_services; +/* to-todo */ pub mod node_info_software; +/* to-todo */ pub mod node_info_usage; +/* to-todo */ pub mod node_info_usage_users; /* to-todo */ pub mod note; +/* to-todo */ pub mod notification_count; +/* to-todo */ pub mod notification_subject; +/* to-todo */ pub mod notification_thread; +/* to-todo */ pub mod notify_subject_type; /* to-todo */ pub mod oath_application; /* to-todo */ pub mod package; /* to-todo */ pub mod package_file; @@ -86,18 +108,22 @@ pub mod access_token; /* to-todo */ pub mod push_mirror; /* to-todo */ pub mod reaction; /* to-todo */ pub mod release; +/* to-todo */ pub mod rename_user_option; /* to-todo */ pub mod replace; /* to-todo */ pub mod repo_collaborator_permission; /* to-todo */ pub mod repo_commit; /* to-todo */ pub mod repo_meta; /* to-todo */ pub mod repository_settings; /* to-todo */ pub mod review_state; +/* to-todo */ pub mod server_verion; /* to-todo */ pub mod state_type; /* to-todo */ pub mod stop_watch; /* to-todo */ pub mod submit_pull_review; /* to-todo */ pub mod tag; +/* to-todo */ pub mod time_stamp; /* to-todo */ pub mod timeline_comment; /* to-todo */ pub mod topic; +/* to-todo */ pub mod topic_response; /* to-todo */ pub mod tracked_time; /* to-todo */ pub mod transfer; /* to-todo */ pub mod ui_settings; @@ -106,3 +132,4 @@ pub mod access_token; /* to-todo */ pub mod wiki_commit; /* to-todo */ pub mod wiki_commit_list; /* to-todo */ pub mod wiki_page; +/* to-todo */ pub mod wiki_page_meta_data; diff --git a/src/types/api/new_issue_pins_allowed.rs b/src/types/api/new_issue_pins_allowed.rs new file mode 100644 index 0000000..9e6fd31 --- /dev/null +++ b/src/types/api/new_issue_pins_allowed.rs @@ -0,0 +1,7 @@ +//NewIssuePinsAllowed{ +//description: +//NewIssuePinsAllowed represents an API response that says if new Issue Pins are allowed +// +//issues boolean +//pull_requests boolean +//} diff --git a/src/types/api/node_info.rs b/src/types/api/node_info.rs new file mode 100644 index 0000000..70c9d8f --- /dev/null +++ b/src/types/api/node_info.rs @@ -0,0 +1,15 @@ +//NodeInfo{ +//description: +//NodeInfo contains standardized way of exposing metadata about a server running one of the distributed social networks +// +//metadata { +//} +//openRegistrations boolean +//protocols [ +//x-go-name: Protocols +//string] +//services NodeInfoServices{...} +//software NodeInfoSoftware{...} +//usage NodeInfoUsage{...} +//version string +//} diff --git a/src/types/api/node_info_services.rs b/src/types/api/node_info_services.rs new file mode 100644 index 0000000..6168cd1 --- /dev/null +++ b/src/types/api/node_info_services.rs @@ -0,0 +1,11 @@ +//NodeInfoServices{ +//description: +//NodeInfoServices contains the third party sites this server can connect to via their application API +// +//inbound [ +//x-go-name: Inbound +//string] +//outbound [ +//x-go-name: Outbound +//string] +//} diff --git a/src/types/api/node_info_software.rs b/src/types/api/node_info_software.rs new file mode 100644 index 0000000..6d71111 --- /dev/null +++ b/src/types/api/node_info_software.rs @@ -0,0 +1,9 @@ +//NodeInfoSoftware{ +//description: +//NodeInfoSoftware contains Metadata about server software in use +// +//homepage string +//name string +//repository string +//version string +//} diff --git a/src/types/api/node_info_usage.rs b/src/types/api/node_info_usage.rs new file mode 100644 index 0000000..0d4aab4 --- /dev/null +++ b/src/types/api/node_info_usage.rs @@ -0,0 +1,8 @@ +//NodeInfoUsage{ +//description: +//NodeInfoUsage contains usage statistics for this server +// +//localComments integer($int64) +//localPosts integer($int64) +//users NodeInfoUsageUsers{...} +//} diff --git a/src/types/api/node_info_usage_users.rs b/src/types/api/node_info_usage_users.rs new file mode 100644 index 0000000..9286c74 --- /dev/null +++ b/src/types/api/node_info_usage_users.rs @@ -0,0 +1,8 @@ +//NodeInfoUsageUsers{ +//description: +//NodeInfoUsageUsers contains statistics about the users of this server +// +//activeHalfyear integer($int64) +//activeMonth integer($int64) +//total integer($int64) +//} diff --git a/src/types/api/notification_count.rs b/src/types/api/notification_count.rs new file mode 100644 index 0000000..6af6eff --- /dev/null +++ b/src/types/api/notification_count.rs @@ -0,0 +1,6 @@ +//NotificationCount{ +//description: +//NotificationCount number of unread notifications +// +//new integer($int64) +//} diff --git a/src/types/api/notification_subject.rs b/src/types/api/notification_subject.rs new file mode 100644 index 0000000..cf27db0 --- /dev/null +++ b/src/types/api/notification_subject.rs @@ -0,0 +1,12 @@ +//NotificationSubject{ +//description: +//NotificationSubject contains the notification subject (Issue/Pull/Commit) +// +//html_url string +//latest_comment_html_url string +//latest_comment_url string +//state StateType[...] +//title string +//type NotifySubjectType[...] +//url string +//} diff --git a/src/types/api/notification_thread.rs b/src/types/api/notification_thread.rs new file mode 100644 index 0000000..a6a726b --- /dev/null +++ b/src/types/api/notification_thread.rs @@ -0,0 +1,12 @@ +//NotificationThread{ +//description: +//NotificationThread expose Notification on API +// +//id integer($int64) +//pinned boolean +//repository Repository{...} +//subject NotificationSubject{...} +//unread boolean +//updated_at string($date-time) +//url string +//} diff --git a/src/types/api/notify_subject_type.rs b/src/types/api/notify_subject_type.rs new file mode 100644 index 0000000..a69f497 --- /dev/null +++ b/src/types/api/notify_subject_type.rs @@ -0,0 +1,2 @@ +//NotifySubjectTypestring +//NotifySubjectType represent type of notification subject diff --git a/src/types/api/rename_user_option.rs b/src/types/api/rename_user_option.rs new file mode 100644 index 0000000..12a6fc4 --- /dev/null +++ b/src/types/api/rename_user_option.rs @@ -0,0 +1,9 @@ +//RenameUserOption{ +//description: +//RenameUserOption options when renaming a user +// +//new_username* string +//uniqueItems: true +//New username for this user. This name cannot be in use yet by any other user. +// +//} diff --git a/src/types/api/server_verion.rs b/src/types/api/server_verion.rs new file mode 100644 index 0000000..a2acce1 --- /dev/null +++ b/src/types/api/server_verion.rs @@ -0,0 +1,6 @@ +//ServerVersion{ +//description: +//ServerVersion wraps the version of the server +// +//version string +//} diff --git a/src/types/api/time_stamp.rs b/src/types/api/time_stamp.rs new file mode 100644 index 0000000..f3d5051 --- /dev/null +++ b/src/types/api/time_stamp.rs @@ -0,0 +1,2 @@ +//TimeStampinteger($int64) +//TimeStamp defines a timestamp diff --git a/src/types/api/topic_response.rs b/src/types/api/topic_response.rs new file mode 100644 index 0000000..fa188c8 --- /dev/null +++ b/src/types/api/topic_response.rs @@ -0,0 +1,10 @@ +//TopicResponse{ +//description: +//TopicResponse for returning topics +// +//created string($date-time) +//id integer($int64) +//repo_count integer($int64) +//topic_name string +//updated string($date-time) +//} diff --git a/src/types/api/wiki_page_meta_data.rs b/src/types/api/wiki_page_meta_data.rs new file mode 100644 index 0000000..c802e4e --- /dev/null +++ b/src/types/api/wiki_page_meta_data.rs @@ -0,0 +1,9 @@ +//WikiPageMetaData{ +//description: +//WikiPageMetaData wiki page meta information +// +//html_url string +//last_commit WikiCommit{...} +//sub_url string +//title string +//}