feat: add rest of todos for types to define
This commit is contained in:
parent
fd3d10af89
commit
d37540d8a2
30 changed files with 283 additions and 27 deletions
BIN
progress.png
BIN
progress.png
Binary file not shown.
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 17 KiB |
|
@ -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
|
10
src/types/api/files_response.rs
Normal file
10
src/types/api/files_response.rs
Normal file
|
@ -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{...}
|
||||
//}
|
7
src/types/api/gitignore_tempalte_info.rs
Normal file
7
src/types/api/gitignore_tempalte_info.rs
Normal file
|
@ -0,0 +1,7 @@
|
|||
//GitignoreTemplateInfo{
|
||||
//description:
|
||||
//GitignoreTemplateInfo name and text of a gitignore template
|
||||
//
|
||||
//name string
|
||||
//source string
|
||||
//}
|
6
src/types/api/issue_config.rs
Normal file
6
src/types/api/issue_config.rs
Normal file
|
@ -0,0 +1,6 @@
|
|||
//IssueConfig{
|
||||
//blank_issues_enabled boolean
|
||||
//contact_links [
|
||||
//x-go-name: ContactLinks
|
||||
//IssueConfigContactLink{...}]
|
||||
//}
|
5
src/types/api/issue_config_contact_link.rs
Normal file
5
src/types/api/issue_config_contact_link.rs
Normal file
|
@ -0,0 +1,5 @@
|
|||
//IssueConfigContactLink{
|
||||
//about string
|
||||
//name string
|
||||
//url string
|
||||
//}
|
4
src/types/api/issue_config_validation.rs
Normal file
4
src/types/api/issue_config_validation.rs
Normal file
|
@ -0,0 +1,4 @@
|
|||
//IssueConfigValidation{
|
||||
//message string
|
||||
//valid boolean
|
||||
//}
|
6
src/types/api/issue_deadline.rs
Normal file
6
src/types/api/issue_deadline.rs
Normal file
|
@ -0,0 +1,6 @@
|
|||
//IssueDeadline{
|
||||
//description:
|
||||
//IssueDeadline represents an issue deadline
|
||||
//
|
||||
//due_date string($date-time)
|
||||
//}
|
8
src/types/api/issue_meta.rs
Normal file
8
src/types/api/issue_meta.rs
Normal file
|
@ -0,0 +1,8 @@
|
|||
//IssueMeta{
|
||||
//description:
|
||||
//IssueMeta basic issue information
|
||||
//
|
||||
//index integer($int64)
|
||||
//owner string
|
||||
//repo string
|
||||
//}
|
11
src/types/api/label_template.rs
Normal file
11
src/types/api/label_template.rs
Normal file
|
@ -0,0 +1,11 @@
|
|||
//LabelTemplate{
|
||||
//description:
|
||||
//LabelTemplate info of a Label template
|
||||
//
|
||||
//color string
|
||||
//example: 00aabb
|
||||
//description string
|
||||
//exclusive boolean
|
||||
//example: false
|
||||
//name string
|
||||
//}
|
10
src/types/api/license_template_info.rs
Normal file
10
src/types/api/license_template_info.rs
Normal file
|
@ -0,0 +1,10 @@
|
|||
//LicenseTemplateInfo{
|
||||
//description:
|
||||
//LicensesInfo contains information about a License
|
||||
//
|
||||
//body string
|
||||
//implementation string
|
||||
//key string
|
||||
//name string
|
||||
//url string
|
||||
//}
|
8
src/types/api/licenses_template_list_entry.rs
Normal file
8
src/types/api/licenses_template_list_entry.rs
Normal file
|
@ -0,0 +1,8 @@
|
|||
//LicensesTemplateListEntry{
|
||||
//description:
|
||||
//LicensesListEntry is used for the API
|
||||
//
|
||||
//key string
|
||||
//name string
|
||||
//url string
|
||||
//}
|
25
src/types/api/markdown_option.rs
Normal file
25
src/types/api/markdown_option.rs
Normal file
|
@ -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
|
||||
//
|
||||
//}
|
30
src/types/api/markup_option.rs
Normal file
30
src/types/api/markup_option.rs
Normal file
|
@ -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
|
||||
//
|
||||
//}
|
|
@ -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;
|
||||
|
|
7
src/types/api/new_issue_pins_allowed.rs
Normal file
7
src/types/api/new_issue_pins_allowed.rs
Normal file
|
@ -0,0 +1,7 @@
|
|||
//NewIssuePinsAllowed{
|
||||
//description:
|
||||
//NewIssuePinsAllowed represents an API response that says if new Issue Pins are allowed
|
||||
//
|
||||
//issues boolean
|
||||
//pull_requests boolean
|
||||
//}
|
15
src/types/api/node_info.rs
Normal file
15
src/types/api/node_info.rs
Normal file
|
@ -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
|
||||
//}
|
11
src/types/api/node_info_services.rs
Normal file
11
src/types/api/node_info_services.rs
Normal file
|
@ -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]
|
||||
//}
|
9
src/types/api/node_info_software.rs
Normal file
9
src/types/api/node_info_software.rs
Normal file
|
@ -0,0 +1,9 @@
|
|||
//NodeInfoSoftware{
|
||||
//description:
|
||||
//NodeInfoSoftware contains Metadata about server software in use
|
||||
//
|
||||
//homepage string
|
||||
//name string
|
||||
//repository string
|
||||
//version string
|
||||
//}
|
8
src/types/api/node_info_usage.rs
Normal file
8
src/types/api/node_info_usage.rs
Normal file
|
@ -0,0 +1,8 @@
|
|||
//NodeInfoUsage{
|
||||
//description:
|
||||
//NodeInfoUsage contains usage statistics for this server
|
||||
//
|
||||
//localComments integer($int64)
|
||||
//localPosts integer($int64)
|
||||
//users NodeInfoUsageUsers{...}
|
||||
//}
|
8
src/types/api/node_info_usage_users.rs
Normal file
8
src/types/api/node_info_usage_users.rs
Normal file
|
@ -0,0 +1,8 @@
|
|||
//NodeInfoUsageUsers{
|
||||
//description:
|
||||
//NodeInfoUsageUsers contains statistics about the users of this server
|
||||
//
|
||||
//activeHalfyear integer($int64)
|
||||
//activeMonth integer($int64)
|
||||
//total integer($int64)
|
||||
//}
|
6
src/types/api/notification_count.rs
Normal file
6
src/types/api/notification_count.rs
Normal file
|
@ -0,0 +1,6 @@
|
|||
//NotificationCount{
|
||||
//description:
|
||||
//NotificationCount number of unread notifications
|
||||
//
|
||||
//new integer($int64)
|
||||
//}
|
12
src/types/api/notification_subject.rs
Normal file
12
src/types/api/notification_subject.rs
Normal file
|
@ -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
|
||||
//}
|
12
src/types/api/notification_thread.rs
Normal file
12
src/types/api/notification_thread.rs
Normal file
|
@ -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
|
||||
//}
|
2
src/types/api/notify_subject_type.rs
Normal file
2
src/types/api/notify_subject_type.rs
Normal file
|
@ -0,0 +1,2 @@
|
|||
//NotifySubjectTypestring
|
||||
//NotifySubjectType represent type of notification subject
|
9
src/types/api/rename_user_option.rs
Normal file
9
src/types/api/rename_user_option.rs
Normal file
|
@ -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.
|
||||
//
|
||||
//}
|
6
src/types/api/server_verion.rs
Normal file
6
src/types/api/server_verion.rs
Normal file
|
@ -0,0 +1,6 @@
|
|||
//ServerVersion{
|
||||
//description:
|
||||
//ServerVersion wraps the version of the server
|
||||
//
|
||||
//version string
|
||||
//}
|
2
src/types/api/time_stamp.rs
Normal file
2
src/types/api/time_stamp.rs
Normal file
|
@ -0,0 +1,2 @@
|
|||
//TimeStampinteger($int64)
|
||||
//TimeStamp defines a timestamp
|
10
src/types/api/topic_response.rs
Normal file
10
src/types/api/topic_response.rs
Normal file
|
@ -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)
|
||||
//}
|
9
src/types/api/wiki_page_meta_data.rs
Normal file
9
src/types/api/wiki_page_meta_data.rs
Normal file
|
@ -0,0 +1,9 @@
|
|||
//WikiPageMetaData{
|
||||
//description:
|
||||
//WikiPageMetaData wiki page meta information
|
||||
//
|
||||
//html_url string
|
||||
//last_commit WikiCommit{...}
|
||||
//sub_url string
|
||||
//title string
|
||||
//}
|
Loading…
Reference in a new issue