diff --git a/core/README.md b/core/README.md index 92fb3f75..2e59ecb2 100644 --- a/core/README.md +++ b/core/README.md @@ -10,14 +10,14 @@ Core To get started, add a dependency on cactacea depending. ``` -"io.github.cactacea" %% "core" % "19.6.2" +"io.github.cactacea" %% "core" % "19.7.0" ``` Or similarily with Maven: ``` io.github.cactacea core_2.12 - 19.6.2 + 19.7.0 ``` diff --git a/docs/src/main/tut/getting-started.md b/docs/src/main/tut/getting-started.md index c7f5cdc7..32059351 100644 --- a/docs/src/main/tut/getting-started.md +++ b/docs/src/main/tut/getting-started.md @@ -10,7 +10,7 @@ position: 1 `build.sbt`に下記の依存関係を追加します。 ``` -"io.github.cactacea" %% "server" % "19.6.2" +"io.github.cactacea" %% "server" % "19.7.0" ``` `Maven`による表記: @@ -19,7 +19,7 @@ position: 1 io.github.cactacea server_2.12 - 19.6.2 + 19.7.0 ``` diff --git a/docs/src/main/tut/swagger.json b/docs/src/main/tut/swagger.json index 82663a6d..220de901 100644 --- a/docs/src/main/tut/swagger.json +++ b/docs/src/main/tut/swagger.json @@ -1 +1 @@ -{"swagger":"2.0","info":{"description":"Cactacea / Cactacea backend API for web and mobile applications","version":"19.6.2","title":"Cactacea backend API"},"tags":[{"name":"Accounts","description":"Manage accounts"},{"name":"Blocks","description":"Manage blocks"},{"name":"Comments","description":"Manage comments"},{"name":"Feeds","description":"Manage feeds"},{"name":"Groups","description":"Manage groups"},{"name":"Invitations","description":"Manage group invitations"},{"name":"Mediums","description":"Manage media"},{"name":"Messages","description":"Manage messages"},{"name":"Session","description":"Manage session"},{"name":"Sessions","description":"Manage sessions"},{"name":"Settings","description":"Manage session settings"},{"name":"System","description":"Health checking and etc"}],"paths":{"/accounts":{"get":{"tags":["Session"],"summary":"Find accounts","operationId":"findAccounts","parameters":[{"name":"accountName","in":"query","description":"Filters accounts whose account name start of.","required":false,"type":"string"},{"name":"since","in":"query","description":"Filters accounts which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of accounts. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of accounts returned on one result page. By default the value is 20 accounts. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Account"}}}}}},"/accounts/{id}":{"get":{"tags":["Accounts"],"summary":"Get information about a account","operationId":"findAccount","parameters":[{"name":"id","in":"path","description":"Account identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"$ref":"#/definitions/Account"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/accounts/{id}/status":{"get":{"tags":["Accounts"],"summary":"Get account on","operationId":"findAccountStatus","parameters":[{"name":"id","in":"path","description":"Account identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"$ref":"#/definitions/AccountStatus"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/accounts/{id}/display_name":{"put":{"tags":["Accounts"],"summary":"Change display name to session account","operationId":"updateAccountDisplayName","parameters":[{"name":"id","in":"path","description":"Account Identifier.","required":true,"type":"number"},{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PutAccountDisplayNameBody"}}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/accounts/{id}/feeds":{"get":{"tags":["Accounts"],"summary":"Get feeds list a account posted","operationId":"findAccountFeeds","parameters":[{"name":"id","in":"path","description":"Account Identifier.","required":true,"type":"number"},{"name":"since","in":"query","description":"Filters feeds which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of feeds. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of feeds returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Feed"}}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/accounts/{id}/likes":{"get":{"tags":["Accounts"],"summary":"Get account's liked feeds","operationId":"findAccountFeedsLiked","parameters":[{"name":"id","in":"path","description":"Account Identifier.","required":true,"type":"number"},{"name":"since","in":"query","description":"Filters feeds which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of feeds. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of entries returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Feed"}}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/accounts/{id}/followers":{"get":{"tags":["Accounts"],"summary":"Get accounts list a account is followed by","operationId":"findAccountFollowers","parameters":[{"name":"id","in":"path","description":"Account Identifier.","required":true,"type":"number"},{"name":"since","in":"query","description":"Filters followers which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of followers. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of followers returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Account"}}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/accounts/{id}/friends":{"get":{"tags":["Accounts"],"summary":"Get a account's friends list","operationId":"findAccountFriends","parameters":[{"name":"id","in":"path","description":"Account Identifier.","required":true,"type":"number"},{"name":"since","in":"query","description":"Filters friends which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of friends. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of friends returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Account"}}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"delete":{"tags":["Accounts"],"summary":"Remove friendship to a account","operationId":"unfriend","parameters":[{"name":"id","in":"path","description":"Account identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/accounts/{accountId}/groups/{groupId}/join":{"post":{"tags":["Accounts"],"summary":"Join a account in a group","operationId":"joinAccount","parameters":[{"name":"accountId","in":"path","description":"Account Identifier.","required":true,"type":"number"},{"name":"groupId","in":"path","description":"Group Identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"No Content"},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/accounts/{accountId}/groups/{groupId}/leave":{"post":{"tags":["Accounts"],"summary":"Leave a account from a group","operationId":"leaveAccount","parameters":[{"name":"accountId","in":"path","description":"Account Identifier.","required":true,"type":"number"},{"name":"groupId","in":"path","description":"Group Identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/accounts/{id}/group":{"get":{"tags":["Accounts"],"summary":"Get a direct message group to a account","operationId":"findAccountGroup","parameters":[{"name":"id","in":"path","description":"Account identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"$ref":"#/definitions/Group"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/accounts/{id}/groups":{"get":{"tags":["Accounts"],"summary":"Get groups list a account groupJoined","operationId":"findAccountGroups","parameters":[{"name":"id","in":"path","description":"Account identifier.","required":true,"type":"number"},{"name":"since","in":"query","description":"Filters groups which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of groups. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of groups returned on one result page. By default the value is 20 groups. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Group"}}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/accounts/{id}/reports":{"post":{"tags":["Accounts"],"summary":"Report a account","operationId":"reportAccount","parameters":[{"name":"id","in":"path","description":"Account Identifier.","required":true,"type":"number"},{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PostAccountReportBody"}}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/accounts/{id}/blocks":{"post":{"tags":["Accounts"],"summary":"Block a account","operationId":"block","parameters":[{"name":"id","in":"path","description":"Account Identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"delete":{"tags":["Accounts"],"summary":"Unblock a account","operationId":"unblock","parameters":[{"name":"id","in":"path","description":"Account identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/comments":{"get":{"tags":["Comments"],"summary":"Search comments","operationId":"findComments","parameters":[{"name":"id","in":"query","description":"Feed identifier.","required":true,"type":"number"},{"name":"since","in":"query","description":"Filters comments which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of comments. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of comments returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Comment"}}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"post":{"tags":["Comments"],"summary":"Create a comment on a feed","operationId":"postComment","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PostCommentBody"}}],"responses":{"201":{"description":"Successful operation.","schema":{"$ref":"#/definitions/CommentCreated"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/comments/{id}":{"get":{"tags":["Comments"],"summary":"Get basic information about a comment","operationId":"findComment","parameters":[{"name":"id","in":"path","description":"Comment Identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"$ref":"#/definitions/Comment"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"delete":{"tags":["Comments"],"summary":"Delete a comment","operationId":"deleteComment","parameters":[{"name":"id","in":"path","description":"Comment Identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/comments/{id}/reports":{"post":{"tags":["Comments"],"summary":"Report a comment","operationId":"reportComment","parameters":[{"name":"id","in":"path","description":"Comment Identifier.","required":true,"type":"number"},{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PostCommentReportBody"}}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/comments/{id}/likes":{"get":{"tags":["CommentLikes"],"summary":"Get accounts list who liked on a comment","operationId":"findAccountsLikedComment","parameters":[{"name":"id","in":"path","description":"Comment Identifier.","required":true,"type":"number"},{"name":"since","in":"query","description":"Filters accounts which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of accounts. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of accounts returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Account"}}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"post":{"tags":["CommentLikes"],"summary":"Set a like on a comment","operationId":"likeComment","parameters":[{"name":"id","in":"path","description":"Comment Identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"delete":{"tags":["CommentLikes"],"summary":"Remove a like on a comment","operationId":"unlikeComment","parameters":[{"name":"id","in":"path","description":"Comment Identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/feeds":{"get":{"tags":["Feeds"],"summary":"Find feeds","operationId":"findFeeds","parameters":[{"name":"since","in":"query","description":"Filters feeds which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of feeds. By default the value is 0.","required":false,"type":"number"},{"name":"feedPrivacyType","in":"query","description":"Feed privacy type. By default the value is everyone.","required":false,"type":"string","enum":["everyone","followers","friends","self"]},{"name":"count","in":"query","description":"Maximum number of feeds returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Feed"}}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"post":{"tags":["Feeds"],"summary":"Post a feed","operationId":"postFeed","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PostFeedBody"}}],"responses":{"201":{"description":"Successful operation.","schema":{"$ref":"#/definitions/FeedCreated"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/feeds/{id}":{"get":{"tags":["Feeds"],"summary":"Get basic information about a feed","operationId":"findFeed","parameters":[{"name":"id","in":"path","description":"Feed identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"$ref":"#/definitions/Feed"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"put":{"tags":["Feeds"],"summary":"Update a feed","operationId":"updateFeed","parameters":[{"name":"id","in":"path","description":"Feed identifier.","required":true,"type":"number"},{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PutFeedBody"}}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"delete":{"tags":["Feeds"],"summary":"Delete a feed","operationId":"deleteFeed","parameters":[{"name":"id","in":"path","description":"Feed identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/feeds/{id}/reports":{"post":{"tags":["Feeds"],"summary":"Report a feed","operationId":"reportFeed","parameters":[{"name":"id","in":"path","description":"Feed identifier.","required":true,"type":"number"},{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PostFeedReportBody"}}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/feeds/{id}/likes":{"get":{"tags":["FeedLikes"],"summary":"Get accounts list who set a like to a feed","operationId":"findAccountsLikedFeed","parameters":[{"name":"id","in":"path","description":"Feed identifier.","required":true,"type":"number"},{"name":"since","in":"query","description":"Filters accounts which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of accounts. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of accounts returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Account"}}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"post":{"tags":["FeedLikes"],"summary":"Set a like on a feed","operationId":"likeFeed","parameters":[{"name":"id","in":"path","description":"Feed identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"delete":{"tags":["FeedLikes"],"summary":"Remove a like on a feed","operationId":"unlikeFeed","parameters":[{"name":"id","in":"path","description":"Feed identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/accounts/{id}/follows":{"get":{"tags":["Accounts"],"summary":"Get accounts list a account follows","operationId":"findFollow","parameters":[{"name":"id","in":"path","description":"Account Identifier.","required":true,"type":"number"},{"name":"since","in":"query","description":"Filters follower which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of follower. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of follower returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Account"}}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/accounts/{id}/follow":{"post":{"tags":["Accounts"],"summary":"Follow a account","operationId":"followAccount","parameters":[{"name":"id","in":"path","description":"Account Identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"delete":{"tags":["Accounts"],"summary":"UnFollow a account","operationId":"unfollowAccount","parameters":[{"name":"id","in":"path","description":"Account Identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/groups":{"get":{"tags":["Groups"],"summary":"Search groups","operationId":"searchGroups","parameters":[{"name":"groupName","in":"query","description":"Filters groups which group name start of.","required":false,"type":"string"},{"name":"invitationOnly","in":"query","description":"Filters groups that invited accounts can join in.","required":false,"type":"number"},{"name":"groupPrivacyType","in":"query","description":"Filters groups which can join in.","required":false,"type":"string","enum":["everyone","follows","followers","friends"]},{"name":"since","in":"query","description":"Filters groups which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of messages. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of groups returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Group"}}}}},"post":{"tags":["Groups"],"summary":"Create a group","operationId":"createGroup","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PostGroupBody"}}],"responses":{"201":{"description":"Successful operation.","schema":{"$ref":"#/definitions/GroupCreated"}}}}},"/groups/{id}":{"get":{"tags":["Groups"],"summary":"Get basic information about a group","operationId":"findGroup","parameters":[{"name":"id","in":"path","description":"Group identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"$ref":"#/definitions/Group"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"put":{"tags":["Groups"],"summary":"Update a group","operationId":"updateGroup","parameters":[{"name":"id","in":"path","description":"Group identifier.","required":true,"type":"number"},{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PutGroupBody"}}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"delete":{"tags":["Groups"],"summary":"Hide a group and delete all messages","operationId":"deleteGroup","parameters":[{"name":"id","in":"path","description":"Group identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/groups/{id}/join":{"post":{"tags":["Groups"],"summary":"Join to a group,","operationId":"joinGroup","parameters":[{"name":"id","in":"path","description":"Group identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/groups/{id}/leave":{"post":{"tags":["Groups"],"summary":"Leave from a group","operationId":"leaveGroup","parameters":[{"name":"id","in":"path","description":"Group groupInvitation identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/groups/{id}/accounts":{"get":{"tags":["Groups"],"summary":"Get accounts list of a group","operationId":"findGroupAccounts","parameters":[{"name":"id","in":"path","description":"Group identifier.","required":true,"type":"number"},{"name":"since","in":"query","description":"Filters accounts which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of accounts. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of accounts returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Group"}}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/groups/{id}/hides":{"post":{"tags":["Groups"],"summary":"Hide a group","operationId":"hideGroup","parameters":[{"name":"id","in":"path","description":"Group identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"delete":{"tags":["Groups"],"summary":"Show a group","operationId":"showGroup","parameters":[{"name":"id","in":"path","description":"Group identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/groups/{id}/reports":{"post":{"tags":["Groups"],"summary":"Report a group","operationId":"reportGroup","parameters":[{"name":"id","in":"path","description":"Group identifier.","required":true,"type":"number"},{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PostGroupReportBody"}}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/groups/{id}/invitations":{"post":{"tags":["Invitations"],"summary":"Post a groupInvitation to some accounts","operationId":"inviteAccounts","parameters":[{"name":"id","in":"path","description":"Group Identifier.","required":true,"type":"number"},{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PostInvitationAccountsBody"}}],"responses":{"201":{"description":"Successful operation.","schema":{"$ref":"#/definitions/InvitationCreated"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/accounts/{accountId}/groups/{groupId}/invitations":{"post":{"tags":["Accounts"],"summary":"Create a groupInvitation to a account","operationId":"inviteAccount","parameters":[{"name":"accountId","in":"path","description":"Account Identifier.","required":true,"type":"number"},{"name":"groupId","in":"path","description":"Group Identifier.","required":true,"type":"number"}],"responses":{"201":{"description":"Successful operation.","schema":{"$ref":"#/definitions/InvitationCreated"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/invitations/{id}/accept":{"post":{"tags":["Invitations"],"summary":"Accept a groupInvitation","operationId":"acceptInvitation","parameters":[{"name":"id","in":"path","description":"Group groupInvitation identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/invitations/{id}/reject":{"post":{"tags":["Invitations"],"summary":"Reject a groupInvitation","operationId":"rejectInvitation","parameters":[{"name":"id","in":"path","description":"Group groupInvitation identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/mediums/:*":{"get":{"tags":["Mediums"],"summary":"Get a medium","operationId":"findMedium","parameters":[],"responses":{"200":{"description":"Successful operation."}}}},"/mediums":{"post":{"tags":["Mediums"],"summary":"Upload a medium","operationId":"uploadMedium","consumes":["multipart/form-data"],"parameters":[{"name":"file","in":"formData","description":"Upload a medium file","required":true,"type":"file"}],"responses":{"201":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/MediumCreated"}}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/mediums/{id}":{"delete":{"tags":["Mediums"],"summary":"Delete a medium","operationId":"deleteMedium","parameters":[{"name":"id","in":"path","description":"Medium identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Medium not found."}}}},"/messages":{"get":{"tags":["Messages"],"summary":"Search messages","operationId":"findMessages","parameters":[{"name":"id","in":"query","description":"Group identifier.","required":true,"type":"number"},{"name":"since","in":"query","description":"Filters messages which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of messages. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of entries returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"},{"name":"ascending","in":"query","description":"Order by posted time.","required":true,"type":"boolean"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Message"}}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"delete":{"tags":["Messages"],"summary":"Delete messages form a group","operationId":"deleteMessage","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/DeleteMessagesBody"}}],"responses":{"200":{"description":"Successful operation."}}}},"/messages/text":{"post":{"tags":["Messages"],"summary":"Send a text to a group","operationId":"postText","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PostTextBody"}}],"responses":{"201":{"description":"Successful operation.","schema":{"$ref":"#/definitions/Message"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/messages/medium":{"post":{"tags":["Messages"],"summary":"Send a medium to a group","operationId":"postMedium","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PostMediumBody"}}],"responses":{"201":{"description":"Successful operation.","schema":{"$ref":"#/definitions/Message"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/accounts/{id}/mutes":{"post":{"tags":["Accounts"],"summary":"Mute a account","operationId":"muteAccount","parameters":[{"name":"id","in":"path","description":"Account Identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"delete":{"tags":["Accounts"],"summary":"Unmute a account","operationId":"unmuteAccount","parameters":[{"name":"id","in":"path","description":"Account identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/notifications":{"get":{"tags":["Notifications"],"summary":"Search notifications","operationId":"findNotifications","parameters":[{"name":"since","in":"query","description":"Filters notifications which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of notifications. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of notifications returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"},{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/GetNotificationsBody"}}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Notification"}}}}}},"/accounts/{id}/requests":{"post":{"tags":["Accounts"],"summary":"Create a friend request to a account","operationId":"request","parameters":[{"name":"id","in":"path","description":"Account Identifier.","required":true,"type":"number"}],"responses":{"201":{"description":"Successful operation.","schema":{"$ref":"#/definitions/FriendRequestCreated"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"delete":{"tags":["Accounts"],"summary":"Remove a friend request to a account","operationId":"unrequest","parameters":[{"name":"id","in":"path","description":"Account identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/requests/{id}/accept":{"post":{"tags":["FriendRequests"],"summary":"Accept a friend request","operationId":"acceptRequest","parameters":[{"name":"id","in":"path","description":"Friend request Identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/requests/{id}/reject":{"post":{"tags":["FriendRequests"],"summary":"Reject a friend request","operationId":"rejectRequest","parameters":[{"name":"id","in":"path","description":"Friend request Identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/session":{"get":{"tags":["Session"],"summary":"Get basic information about session account","operationId":"findSession","parameters":[],"responses":{"200":{"description":"Successful operation.","schema":{"$ref":"#/definitions/Account"}}}},"delete":{"tags":["Session"],"summary":"Sign out","operationId":"signOut","parameters":[],"responses":{"200":{"description":"Successful operation."}}}},"/session/account_name/{accountName}":{"get":{"tags":["Session"],"summary":"Confirm account name exist","operationId":"existAccountName","parameters":[{"name":"accountName","in":"path","description":"Account name.","required":true,"type":"string"}],"responses":{"200":{"description":"Successful operation.","schema":{"$ref":"#/definitions/AccountNameNotExists"}}}}},"/session/account_name":{"put":{"tags":["Session"],"summary":"Update the account name","operationId":"updateAccountName","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PutSessionAccountNameBody"}}],"responses":{"200":{"description":"Successful operation."},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/session/password":{"put":{"tags":["Session"],"summary":"Update the password","operationId":"updatePassword","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PutSessionPasswordBody"}}],"responses":{"200":{"description":"Successful operation."}}}},"/session/profile":{"put":{"tags":["Session"],"summary":"Update the profile","operationId":"updateProfile","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PutSessionProfileBody"}}],"responses":{"200":{"description":"Successful operation."}}}},"/session/profile_image":{"put":{"tags":["Session"],"summary":"Update the profile image","operationId":"updateProfileImage","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PutSessionProfileImageBody"}}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"delete":{"tags":["Session"],"summary":"Remove the profile image","operationId":"deleteProfileImage","parameters":[],"responses":{"200":{"description":"Successful operation."}}}},"/session/blocks":{"get":{"tags":["Blocks"],"summary":"Get blocking accounts list","operationId":"findBlockingAccounts","parameters":[{"name":"since","in":"query","description":"Filters accounts which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of accounts. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of accounts returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Account"}}}}}},"/session/feeds":{"get":{"tags":["Session"],"summary":"Get feeds list session account posted","operationId":"findSessionFeeds","parameters":[{"name":"since","in":"query","description":"Filters feeds which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of feeds. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of feeds returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Feed"}}}}}},"/session/likes":{"get":{"tags":["Session"],"summary":"Get feeds list session account set a like","operationId":"findSessionFeedsLiked","parameters":[{"name":"since","in":"query","description":"Filters entries which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of feeds. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of feeds returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Feed"}}}}}},"/session/follows":{"get":{"tags":["Session"],"summary":"Get accounts list session account followed","operationId":"findSessionFollow","parameters":[{"name":"since","in":"query","description":"Filters follower which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of follower. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of follower returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Account"}}}}}},"/session/followers":{"get":{"tags":["Session"],"summary":"Get accounts list session account is followed by","operationId":"findSessionFollowers","parameters":[{"name":"since","in":"query","description":"Filters followers which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of followers. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of followers returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Account"}}}}}},"/session/friends":{"get":{"tags":["Session"],"summary":"Get friends list","operationId":"findSessionFriends","parameters":[{"name":"since","in":"query","description":"Filters friends which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of friends. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of friends returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"},{"name":"sortType","in":"query","description":"Friends which sorted by accountName or friendsAt. Default is friendsAt.","required":false,"type":"string","enum":["friendsAt","accountName"]}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Account"}}}}}},"/session/groups":{"get":{"tags":["Session"],"summary":"Get groups list session account groupJoined","operationId":"findSessionGroups","parameters":[{"name":"since","in":"query","description":"Filters groups which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of groups. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of groups returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Group"}}}}}},"/session/hides":{"get":{"tags":["Session"],"summary":"Get hidden groups list session account groupJoined","operationId":"findHiddenGroups","parameters":[{"name":"since","in":"query","description":"Filters groups which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of groups. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of groups returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Group"}}}}}},"/session/invitations":{"get":{"tags":["Session"],"summary":"Get invitations list session account received","operationId":"findGroupInvitations","parameters":[{"name":"since","in":"query","description":"Filters invitations which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of group invitations. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of invitations returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/GroupInvitation"}}}}}},"/session/mutes":{"get":{"tags":["Session"],"summary":"Get accounts list session account muted","operationId":"findMutingAccounts","parameters":[{"name":"since","in":"query","description":"Filters accounts which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of accounts. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of accounts returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Account"}}}}}},"/session/requests":{"get":{"tags":["Session"],"summary":"Get friend requests list session account created or received","operationId":"findFriendRequests","parameters":[{"name":"since","in":"query","description":"Filters friend requests which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of friend request. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of friend request returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"},{"name":"received","in":"query","description":"Filters friend requests which you have received or sent.","required":true,"type":"boolean"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/FriendRequest"}}}}}},"/session/push/notification":{"get":{"tags":["Settings"],"summary":"Get push notification settings","operationId":"findPushNotification","parameters":[],"responses":{"200":{"description":"Successful operation.","schema":{"$ref":"#/definitions/PushNotificationSetting"}}}},"put":{"tags":["Settings"],"summary":"Update ths push notification settings","operationId":"updatePushNotification","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PutNotificationSettingBody"}}],"responses":{"200":{"description":"Successful operation."}}}},"/session/push/token":{"post":{"tags":["Settings"],"summary":"Update device push token","operationId":"updatePushToken","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PostDevicePushTokenBody"}}],"responses":{"200":{"description":"Successful operation."}}}},"/session/status":{"post":{"tags":["Settings"],"summary":"Update device status","operationId":"updateDeviceStatus","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PostActiveStatusBody"}}],"responses":{"200":{"description":"Successful operation."}}}},"/sessions":{"get":{"tags":["Sessions"],"summary":"Sign in","operationId":"signIn","parameters":[{"name":"accountName","in":"query","description":"Account name.","required":true,"type":"string"},{"name":"password","in":"query","description":"Account password.","required":true,"type":"string"},{"name":"udid","in":"query","description":"Unique Device Identifier.","required":true,"type":"string"},{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/GetSignInBody"}}],"responses":{"200":{"description":"Successful operation.","schema":{"$ref":"#/definitions/Account"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"post":{"tags":["Sessions"],"summary":"Sign up","operationId":"signUp","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PostSignUpBody"}}],"responses":{"200":{"description":"Successful operation.","schema":{"$ref":"#/definitions/Account"}}}}},"/ping":{"get":{"tags":["System"],"summary":"Health checking","operationId":"ping","parameters":[],"responses":{"200":{"description":"Service is operating normally"}}}}},"securityDefinitions":{"api_key":{"type":"apiKey","name":"x-api-key","in":"header"},"authorization":{"type":"apiKey","name":"Authorization","in":"header"}},"definitions":{"CactaceaError":{"type":"object","required":["code","message"],"properties":{"code":{"type":"integer","format":"int64","description":"code"},"message":{"type":"string","description":"message"}}},"Account":{"type":"object","required":["accountName","blocking","displayName","feedCount","follow","followCount","followerCount","friendCount","friendRequestInProgress","id","isFollower","isFriend","muting"],"properties":{"id":{"type":"number"},"accountName":{"type":"string"},"displayName":{"type":"string"},"profileImageUrl":{"type":"string"},"isFriend":{"type":"boolean"},"friendRequestInProgress":{"type":"boolean"},"follow":{"type":"boolean"},"isFollower":{"type":"boolean"},"followCount":{"type":"integer","format":"int64"},"followerCount":{"type":"integer","format":"int64"},"friendCount":{"type":"integer","format":"int64"},"feedCount":{"type":"integer","format":"int64"},"muting":{"type":"boolean"},"blocking":{"type":"boolean"},"web":{"type":"string"},"birthday":{"type":"number"},"location":{"type":"string"},"bio":{"type":"string"},"joinedAt":{"type":"number"},"next":{"type":"number"}}},"AccountId":{"type":"object","required":["value"],"properties":{"value":{"type":"integer","format":"int64"}}},"CactaceaErrors":{"type":"object","required":["errors"],"properties":{"errors":{"type":"array","items":{"$ref":"#/definitions/CactaceaError"}}},"example":{"errors":[{"code":40012,"message":"Invalid Account name or password."},{"code":40002,"message":"Account terminated."}]}},"AccountStatus":{"type":"object","required":["id","status"],"properties":{"id":{"type":"number"},"status":{"type":"string","enum":["active","inactive"]}}},"PutAccountDisplayNameBody":{"type":"object","properties":{"displayName":{"type":"string","description":"Display name that each account shown."}},"example":"io.github.cactacea.backend.server.models.requests.account.PutAccountDisplayName"},"Feed":{"type":"object","required":["commentCount","contentDeleted","contentWarning","id","likeCount","message","postedAt"],"properties":{"id":{"type":"number"},"message":{"type":"string"},"mediums":{"type":"array","items":{"$ref":"#/definitions/Medium"}},"tags":{"type":"array","items":{"type":"string"}},"account":{"$ref":"#/definitions/Account"},"likeCount":{"type":"integer","format":"int64"},"commentCount":{"type":"integer","format":"int64"},"contentWarning":{"type":"boolean"},"contentDeleted":{"type":"boolean"},"postedAt":{"type":"integer","format":"int64"},"likedAt":{"type":"number"},"next":{"type":"number"}}},"Medium":{"type":"object","required":["contentDeleted","contentWarning","height","id","mediumType","size","uri","width"],"properties":{"id":{"type":"number"},"uri":{"type":"string"},"width":{"type":"integer","format":"int64"},"height":{"type":"integer","format":"int64"},"size":{"type":"integer","format":"int64"},"thumbnailUrl":{"type":"string"},"mediumType":{"type":"string","enum":["image","movie"]},"contentWarning":{"type":"boolean"},"contentDeleted":{"type":"boolean"}}},"GroupId":{"type":"object","required":["value"],"properties":{"value":{"type":"integer","format":"int64"}}},"Group":{"type":"object","required":["accountCount","authorityType","id","invitationOnly","organizedAt","privacyType"],"properties":{"id":{"type":"number"},"name":{"type":"string"},"message":{"$ref":"#/definitions/Message"},"invitationOnly":{"type":"boolean"},"privacyType":{"type":"string","enum":["everyone","follows","followers","friends"]},"authorityType":{"type":"string","enum":["owner","member"]},"accountCount":{"type":"integer","format":"int64"},"lastPostedAt":{"type":"number"},"organizedAt":{"type":"integer","format":"int64"},"next":{"type":"number"}}},"Message":{"type":"object","required":["account","accountCount","contentDeleted","contentWarning","groupId","id","messageType","postedAt","readAccountCount","unread"],"properties":{"id":{"type":"number"},"groupId":{"type":"number"},"messageType":{"type":"string","enum":["text","medium","stamp","groupInvitation","groupJoined","groupLeft"]},"message":{"type":"string"},"medium":{"$ref":"#/definitions/Medium"},"account":{"$ref":"#/definitions/Account"},"unread":{"type":"boolean"},"accountCount":{"type":"integer","format":"int64"},"readAccountCount":{"type":"integer","format":"int64"},"contentWarning":{"type":"boolean"},"contentDeleted":{"type":"boolean"},"postedAt":{"type":"integer","format":"int64"},"next":{"type":"number"}}},"PostAccountReportBody":{"type":"object","required":["reportType"],"properties":{"reportType":{"type":"string","description":"Report type.","enum":["none","spam","inappropriate"]},"reportContent":{"type":"string","description":"Description about this report."}},"example":"io.github.cactacea.backend.server.models.requests.account.PostAccountReport"},"FeedId":{"type":"object","required":["value"],"properties":{"value":{"type":"integer","format":"int64"}}},"Comment":{"type":"object","required":["account","contentDeleted","contentWarning","id","likeCount","message","postedAt"],"properties":{"id":{"type":"number"},"replyId":{"type":"number"},"message":{"type":"string"},"account":{"$ref":"#/definitions/Account"},"likeCount":{"type":"integer","format":"int64"},"contentWarning":{"type":"boolean"},"contentDeleted":{"type":"boolean"},"postedAt":{"type":"integer","format":"int64"},"next":{"type":"number"}}},"PostCommentBody":{"type":"object","required":["id","message"],"properties":{"id":{"type":"number","description":"Feed Identifier."},"message":{"type":"string","description":"A message will be posted."}},"example":"io.github.cactacea.backend.server.models.requests.comment.PostComment"},"CommentCreated":{"type":"object","required":["id"],"properties":{"id":{"type":"number"}}},"CommentId":{"type":"object","required":["value"],"properties":{"value":{"type":"integer","format":"int64"}}},"PostCommentReportBody":{"type":"object","required":["reportType"],"properties":{"reportType":{"type":"string","description":"Report type.","enum":["none","spam","inappropriate"]},"reportContent":{"type":"string","description":"Description about this report."}},"example":"io.github.cactacea.backend.server.models.requests.comment.PostCommentReport"},"PostFeedBody":{"type":"object","required":["contentWarning","message","privacyType"],"properties":{"message":{"type":"string","description":"A feed message will be posted."},"mediumIds":{"type":"array","description":"Medium identifiers of attached.","items":{"type":"number"}},"tags":{"type":"array","description":"Tags of feed.","items":{"type":"string"}},"privacyType":{"type":"string","description":"Feed privacy type.","enum":["everyone","followers","friends","self"]},"contentWarning":{"type":"boolean","description":"Content warning."},"expiration":{"type":"number","description":"Expiration of a feed."}},"example":"io.github.cactacea.backend.server.models.requests.feed.PostFeed"},"FeedCreated":{"type":"object","required":["id"],"properties":{"id":{"type":"number"}}},"PutFeedBody":{"type":"object","required":["contentWarning","message","privacyType"],"properties":{"message":{"type":"string","description":"A feed message will be posted."},"mediumIds":{"type":"array","description":"Medium identifiers of attached.","items":{"type":"number"}},"tags":{"type":"array","description":"Tags of feed.","items":{"type":"string"}},"privacyType":{"type":"string","description":"Group privacy type.","enum":["everyone","followers","friends","self"]},"contentWarning":{"type":"boolean","description":"Content warning."},"expiration":{"type":"number","description":"Expiration of a feed."}},"example":"io.github.cactacea.backend.server.models.requests.feed.PutFeed"},"PostFeedReportBody":{"type":"object","required":["reportType"],"properties":{"reportType":{"type":"string","description":"Report type.","enum":["none","spam","inappropriate"]},"reportContent":{"type":"string","description":"Description about this report."}},"example":"io.github.cactacea.backend.server.models.requests.feed.PostFeedReport"},"PostGroupBody":{"type":"object","required":["authorityType","byInvitationOnly","name","privacyType"],"properties":{"name":{"type":"string","description":"Group name."},"byInvitationOnly":{"type":"boolean","description":"Only invited accounts can join in."},"privacyType":{"type":"string","description":"Which accounts can join in.","enum":["everyone","follows","followers","friends"]},"authorityType":{"type":"string","description":"Which accounts can manage a group.","enum":["owner","member"]}},"example":"io.github.cactacea.backend.server.models.requests.group.PostGroup"},"GroupCreated":{"type":"object","required":["id"],"properties":{"id":{"type":"number"}}},"PutGroupBody":{"type":"object","required":["authorityType","byInvitationOnly","name","privacyType"],"properties":{"name":{"type":"string","description":"Group name."},"byInvitationOnly":{"type":"boolean","description":"Only invited accounts can join in."},"privacyType":{"type":"string","description":"Which accounts can join in.","enum":["everyone","follows","followers","friends"]},"authorityType":{"type":"string","description":"Which accounts can manage a group.","enum":["owner","member"]}},"example":"io.github.cactacea.backend.server.models.requests.group.PutGroup"},"PostGroupReportBody":{"type":"object","required":["reportContent","reportType"],"properties":{"reportType":{"type":"string","description":"Report type.","enum":["none","spam","inappropriate"]},"reportContent":{"type":"string","description":"Description about this report."}},"example":"io.github.cactacea.backend.server.models.requests.group.PostGroupReport"},"PostInvitationAccountsBody":{"type":"object","properties":{"accountIds":{"type":"array","description":"Account Identifies.","items":{"type":"number"}}},"example":"io.github.cactacea.backend.server.models.requests.account.PostInvitationAccounts"},"InvitationCreated":{"type":"object","required":["id"],"properties":{"id":{"type":"number"}}},"GroupInvitationId":{"type":"object","required":["value"],"properties":{"value":{"type":"integer","format":"int64"}}},"MediumCreated":{"type":"object","required":["id","uri"],"properties":{"id":{"type":"number"},"uri":{"type":"string"}}},"MediumId":{"type":"object","required":["value"],"properties":{"value":{"type":"integer","format":"int64"}}},"PostTextBody":{"type":"object","required":["groupId","message"],"properties":{"groupId":{"type":"number","description":"Group identifier."},"message":{"type":"string","description":"A message will be posted."}},"example":"io.github.cactacea.backend.server.models.requests.message.PostText"},"PostMediumBody":{"type":"object","required":["groupId","mediumId"],"properties":{"groupId":{"type":"number","description":"Group identifier."},"mediumId":{"type":"number","description":"A medium will be posted."}},"example":"io.github.cactacea.backend.server.models.requests.message.PostMedium"},"DeleteMessagesBody":{"type":"object","required":["id"],"properties":{"id":{"type":"number","description":"Group identifier."}},"example":"io.github.cactacea.backend.server.models.requests.message.DeleteMessages"},"GetNotificationsBody":{"type":"object","example":"io.github.cactacea.backend.server.models.requests.notification.GetNotifications"},"Notification":{"type":"object","required":["id","message","notificationType","notifiedAt","url"],"properties":{"id":{"type":"number"},"notificationType":{"type":"string","enum":["operator","groupInvitation","friendRequest","feed","feedReply","commentReply"]},"contentId":{"type":"number"},"message":{"type":"string"},"url":{"type":"string"},"notifiedAt":{"type":"integer","format":"int64"},"next":{"type":"number"}}},"FriendRequestCreated":{"type":"object","required":["id"],"properties":{"id":{"type":"number"}}},"FriendRequestId":{"type":"object","required":["value"],"properties":{"value":{"type":"integer","format":"int64"}}},"AccountNameNotExists":{"type":"object","required":["accountName","exists"],"properties":{"accountName":{"type":"string"},"exists":{"type":"boolean"}}},"PutSessionAccountNameBody":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Account name."}},"example":"io.github.cactacea.backend.server.models.requests.session.PutSessionAccountName"},"PutSessionPasswordBody":{"type":"object","required":["password"],"properties":{"password":{"type":"string","description":"Account new password."}},"example":"io.github.cactacea.backend.server.models.requests.session.PutSessionPassword"},"PutSessionProfileBody":{"type":"object","required":["displayName"],"properties":{"displayName":{"type":"string","description":"Display name."},"web":{"type":"string","description":"Profile URL."},"birthday":{"type":"number","description":"Account birthday."},"location":{"type":"string","description":"Account address."},"bio":{"type":"string","description":"Account bio."}},"example":"io.github.cactacea.backend.server.models.requests.session.PutSessionProfile"},"PutSessionProfileImageBody":{"type":"object","required":["id"],"properties":{"id":{"type":"number","description":"Medium identifier."}},"example":"io.github.cactacea.backend.server.models.requests.session.PutSessionProfileImage"},"GroupInvitation":{"type":"object","required":["account","group","id","invitationStatus","invitedAt"],"properties":{"id":{"type":"number"},"group":{"$ref":"#/definitions/Group"},"account":{"$ref":"#/definitions/Account"},"invitationStatus":{"type":"string","enum":["noResponded","accepted","rejected"]},"invitedAt":{"type":"integer","format":"int64"},"next":{"type":"number"}}},"FriendRequest":{"type":"object","required":["account","id","requestStatus","requestedAt"],"properties":{"id":{"type":"number"},"account":{"$ref":"#/definitions/Account"},"requestStatus":{"type":"string","enum":["noResponded","accepted","rejected"]},"requestedAt":{"type":"integer","format":"int64"},"next":{"type":"number"}}},"PushNotificationSetting":{"type":"object","required":["comment","feed","friendRequest","groupInvitation","groupMessage","message","showMessage"],"properties":{"feed":{"type":"boolean"},"comment":{"type":"boolean"},"friendRequest":{"type":"boolean"},"message":{"type":"boolean"},"groupMessage":{"type":"boolean"},"groupInvitation":{"type":"boolean"},"showMessage":{"type":"boolean"}}},"PutNotificationSettingBody":{"type":"object","required":["comment","feed","friendRequest","groupInvitation","groupMessage","message","showMessage"],"properties":{"feed":{"type":"boolean","description":"Notice new follower feed arrived."},"comment":{"type":"boolean","description":"Notice new comment arrived."},"friendRequest":{"type":"boolean","description":"Notice new friend request arrived."},"message":{"type":"boolean","description":"Notice new message arrived."},"groupMessage":{"type":"boolean","description":"Notice new group message arrived."},"groupInvitation":{"type":"boolean","description":"Notice new group groupInvitation arrived."},"showMessage":{"type":"boolean","description":"Show messages text on notification."}},"example":"io.github.cactacea.backend.server.models.requests.setting.PutNotificationSetting"},"PostDevicePushTokenBody":{"type":"object","required":["udid"],"properties":{"pushToken":{"type":"string","description":"Push notification token."},"udid":{"type":"string","description":"Unique Device Identifier."}},"example":"io.github.cactacea.backend.server.models.requests.setting.PostDevicePushToken"},"PostActiveStatusBody":{"type":"object","required":["status","udid"],"properties":{"status":{"type":"string","description":"Device status.","enum":["active","inactive"]},"udid":{"type":"string","description":"Unique Device Identifier."}},"example":"io.github.cactacea.backend.server.models.requests.setting.PostActiveStatus"},"PostSignUpBody":{"type":"object","required":["accountName","password","udid"],"properties":{"accountName":{"type":"string","description":"Account name."},"password":{"type":"string","description":"Account password."},"udid":{"type":"string","description":"Unique Device Identifier."}},"example":"io.github.cactacea.backend.server.models.requests.sessions.PostSignUp"},"GetSignInBody":{"type":"object","example":"io.github.cactacea.backend.server.models.requests.sessions.GetSignIn"}}} \ No newline at end of file +{"swagger":"2.0","info":{"description":"Cactacea / Cactacea backend API for web and mobile applications","version":"19.7.0","title":"Cactacea backend API"},"tags":[{"name":"Accounts","description":"Manage accounts"},{"name":"Blocks","description":"Manage blocks"},{"name":"Comments","description":"Manage comments"},{"name":"Feeds","description":"Manage feeds"},{"name":"Groups","description":"Manage groups"},{"name":"Invitations","description":"Manage group invitations"},{"name":"Mediums","description":"Manage media"},{"name":"Messages","description":"Manage messages"},{"name":"Session","description":"Manage session"},{"name":"Sessions","description":"Manage sessions"},{"name":"Settings","description":"Manage session settings"},{"name":"System","description":"Health checking and etc"}],"paths":{"/accounts":{"get":{"tags":["Session"],"summary":"Find accounts","operationId":"findAccounts","parameters":[{"name":"accountName","in":"query","description":"Filters accounts whose account name start of.","required":false,"type":"string"},{"name":"since","in":"query","description":"Filters accounts which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of accounts. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of accounts returned on one result page. By default the value is 20 accounts. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Account"}}}}}},"/accounts/{id}":{"get":{"tags":["Accounts"],"summary":"Get information about a account","operationId":"findAccount","parameters":[{"name":"id","in":"path","description":"Account identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"$ref":"#/definitions/Account"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/accounts/{id}/status":{"get":{"tags":["Accounts"],"summary":"Get account on","operationId":"findAccountStatus","parameters":[{"name":"id","in":"path","description":"Account identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"$ref":"#/definitions/AccountStatus"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/accounts/{id}/display_name":{"put":{"tags":["Accounts"],"summary":"Change display name to session account","operationId":"updateAccountDisplayName","parameters":[{"name":"id","in":"path","description":"Account Identifier.","required":true,"type":"number"},{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PutAccountDisplayNameBody"}}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/accounts/{id}/feeds":{"get":{"tags":["Accounts"],"summary":"Get feeds list a account posted","operationId":"findAccountFeeds","parameters":[{"name":"id","in":"path","description":"Account Identifier.","required":true,"type":"number"},{"name":"since","in":"query","description":"Filters feeds which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of feeds. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of feeds returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Feed"}}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/accounts/{id}/likes":{"get":{"tags":["Accounts"],"summary":"Get account's liked feeds","operationId":"findAccountFeedsLiked","parameters":[{"name":"id","in":"path","description":"Account Identifier.","required":true,"type":"number"},{"name":"since","in":"query","description":"Filters feeds which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of feeds. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of entries returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Feed"}}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/accounts/{id}/followers":{"get":{"tags":["Accounts"],"summary":"Get accounts list a account is followed by","operationId":"findAccountFollowers","parameters":[{"name":"id","in":"path","description":"Account Identifier.","required":true,"type":"number"},{"name":"since","in":"query","description":"Filters followers which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of followers. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of followers returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Account"}}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/accounts/{id}/friends":{"get":{"tags":["Accounts"],"summary":"Get a account's friends list","operationId":"findAccountFriends","parameters":[{"name":"id","in":"path","description":"Account Identifier.","required":true,"type":"number"},{"name":"since","in":"query","description":"Filters friends which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of friends. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of friends returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Account"}}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"delete":{"tags":["Accounts"],"summary":"Remove friendship to a account","operationId":"unfriend","parameters":[{"name":"id","in":"path","description":"Account identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/accounts/{accountId}/groups/{groupId}/join":{"post":{"tags":["Accounts"],"summary":"Join a account in a group","operationId":"joinAccount","parameters":[{"name":"accountId","in":"path","description":"Account Identifier.","required":true,"type":"number"},{"name":"groupId","in":"path","description":"Group Identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"No Content"},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/accounts/{accountId}/groups/{groupId}/leave":{"post":{"tags":["Accounts"],"summary":"Leave a account from a group","operationId":"leaveAccount","parameters":[{"name":"accountId","in":"path","description":"Account Identifier.","required":true,"type":"number"},{"name":"groupId","in":"path","description":"Group Identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/accounts/{id}/group":{"get":{"tags":["Accounts"],"summary":"Get a direct message group to a account","operationId":"findAccountGroup","parameters":[{"name":"id","in":"path","description":"Account identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"$ref":"#/definitions/Group"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/accounts/{id}/groups":{"get":{"tags":["Accounts"],"summary":"Get groups list a account groupJoined","operationId":"findAccountGroups","parameters":[{"name":"id","in":"path","description":"Account identifier.","required":true,"type":"number"},{"name":"since","in":"query","description":"Filters groups which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of groups. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of groups returned on one result page. By default the value is 20 groups. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Group"}}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/accounts/{id}/reports":{"post":{"tags":["Accounts"],"summary":"Report a account","operationId":"reportAccount","parameters":[{"name":"id","in":"path","description":"Account Identifier.","required":true,"type":"number"},{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PostAccountReportBody"}}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/accounts/{id}/blocks":{"post":{"tags":["Accounts"],"summary":"Block a account","operationId":"block","parameters":[{"name":"id","in":"path","description":"Account Identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"delete":{"tags":["Accounts"],"summary":"Unblock a account","operationId":"unblock","parameters":[{"name":"id","in":"path","description":"Account identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/comments":{"get":{"tags":["Comments"],"summary":"Search comments","operationId":"findComments","parameters":[{"name":"id","in":"query","description":"Feed identifier.","required":true,"type":"number"},{"name":"since","in":"query","description":"Filters comments which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of comments. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of comments returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Comment"}}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"post":{"tags":["Comments"],"summary":"Create a comment on a feed","operationId":"postComment","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PostCommentBody"}}],"responses":{"201":{"description":"Successful operation.","schema":{"$ref":"#/definitions/CommentCreated"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/comments/{id}":{"get":{"tags":["Comments"],"summary":"Get basic information about a comment","operationId":"findComment","parameters":[{"name":"id","in":"path","description":"Comment Identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"$ref":"#/definitions/Comment"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"delete":{"tags":["Comments"],"summary":"Delete a comment","operationId":"deleteComment","parameters":[{"name":"id","in":"path","description":"Comment Identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/comments/{id}/reports":{"post":{"tags":["Comments"],"summary":"Report a comment","operationId":"reportComment","parameters":[{"name":"id","in":"path","description":"Comment Identifier.","required":true,"type":"number"},{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PostCommentReportBody"}}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/comments/{id}/likes":{"get":{"tags":["CommentLikes"],"summary":"Get accounts list who liked on a comment","operationId":"findAccountsLikedComment","parameters":[{"name":"id","in":"path","description":"Comment Identifier.","required":true,"type":"number"},{"name":"since","in":"query","description":"Filters accounts which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of accounts. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of accounts returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Account"}}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"post":{"tags":["CommentLikes"],"summary":"Set a like on a comment","operationId":"likeComment","parameters":[{"name":"id","in":"path","description":"Comment Identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"delete":{"tags":["CommentLikes"],"summary":"Remove a like on a comment","operationId":"unlikeComment","parameters":[{"name":"id","in":"path","description":"Comment Identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/feeds":{"get":{"tags":["Feeds"],"summary":"Find feeds","operationId":"findFeeds","parameters":[{"name":"since","in":"query","description":"Filters feeds which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of feeds. By default the value is 0.","required":false,"type":"number"},{"name":"feedPrivacyType","in":"query","description":"Feed privacy type. By default the value is everyone.","required":false,"type":"string","enum":["everyone","followers","friends","self"]},{"name":"count","in":"query","description":"Maximum number of feeds returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Feed"}}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"post":{"tags":["Feeds"],"summary":"Post a feed","operationId":"postFeed","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PostFeedBody"}}],"responses":{"201":{"description":"Successful operation.","schema":{"$ref":"#/definitions/FeedCreated"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/feeds/{id}":{"get":{"tags":["Feeds"],"summary":"Get basic information about a feed","operationId":"findFeed","parameters":[{"name":"id","in":"path","description":"Feed identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"$ref":"#/definitions/Feed"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"put":{"tags":["Feeds"],"summary":"Update a feed","operationId":"updateFeed","parameters":[{"name":"id","in":"path","description":"Feed identifier.","required":true,"type":"number"},{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PutFeedBody"}}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"delete":{"tags":["Feeds"],"summary":"Delete a feed","operationId":"deleteFeed","parameters":[{"name":"id","in":"path","description":"Feed identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/feeds/{id}/reports":{"post":{"tags":["Feeds"],"summary":"Report a feed","operationId":"reportFeed","parameters":[{"name":"id","in":"path","description":"Feed identifier.","required":true,"type":"number"},{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PostFeedReportBody"}}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/feeds/{id}/likes":{"get":{"tags":["FeedLikes"],"summary":"Get accounts list who set a like to a feed","operationId":"findAccountsLikedFeed","parameters":[{"name":"id","in":"path","description":"Feed identifier.","required":true,"type":"number"},{"name":"since","in":"query","description":"Filters accounts which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of accounts. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of accounts returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Account"}}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"post":{"tags":["FeedLikes"],"summary":"Set a like on a feed","operationId":"likeFeed","parameters":[{"name":"id","in":"path","description":"Feed identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"delete":{"tags":["FeedLikes"],"summary":"Remove a like on a feed","operationId":"unlikeFeed","parameters":[{"name":"id","in":"path","description":"Feed identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/accounts/{id}/follows":{"get":{"tags":["Accounts"],"summary":"Get accounts list a account follows","operationId":"findFollow","parameters":[{"name":"id","in":"path","description":"Account Identifier.","required":true,"type":"number"},{"name":"since","in":"query","description":"Filters follower which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of follower. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of follower returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Account"}}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/accounts/{id}/follow":{"post":{"tags":["Accounts"],"summary":"Follow a account","operationId":"followAccount","parameters":[{"name":"id","in":"path","description":"Account Identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"delete":{"tags":["Accounts"],"summary":"UnFollow a account","operationId":"unfollowAccount","parameters":[{"name":"id","in":"path","description":"Account Identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/groups":{"get":{"tags":["Groups"],"summary":"Search groups","operationId":"searchGroups","parameters":[{"name":"groupName","in":"query","description":"Filters groups which group name start of.","required":false,"type":"string"},{"name":"invitationOnly","in":"query","description":"Filters groups that invited accounts can join in.","required":false,"type":"number"},{"name":"groupPrivacyType","in":"query","description":"Filters groups which can join in.","required":false,"type":"string","enum":["everyone","follows","followers","friends"]},{"name":"since","in":"query","description":"Filters groups which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of messages. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of groups returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Group"}}}}},"post":{"tags":["Groups"],"summary":"Create a group","operationId":"createGroup","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PostGroupBody"}}],"responses":{"201":{"description":"Successful operation.","schema":{"$ref":"#/definitions/GroupCreated"}}}}},"/groups/{id}":{"get":{"tags":["Groups"],"summary":"Get basic information about a group","operationId":"findGroup","parameters":[{"name":"id","in":"path","description":"Group identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"$ref":"#/definitions/Group"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"put":{"tags":["Groups"],"summary":"Update a group","operationId":"updateGroup","parameters":[{"name":"id","in":"path","description":"Group identifier.","required":true,"type":"number"},{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PutGroupBody"}}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"delete":{"tags":["Groups"],"summary":"Hide a group and delete all messages","operationId":"deleteGroup","parameters":[{"name":"id","in":"path","description":"Group identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/groups/{id}/join":{"post":{"tags":["Groups"],"summary":"Join to a group,","operationId":"joinGroup","parameters":[{"name":"id","in":"path","description":"Group identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/groups/{id}/leave":{"post":{"tags":["Groups"],"summary":"Leave from a group","operationId":"leaveGroup","parameters":[{"name":"id","in":"path","description":"Group groupInvitation identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/groups/{id}/accounts":{"get":{"tags":["Groups"],"summary":"Get accounts list of a group","operationId":"findGroupAccounts","parameters":[{"name":"id","in":"path","description":"Group identifier.","required":true,"type":"number"},{"name":"since","in":"query","description":"Filters accounts which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of accounts. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of accounts returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Group"}}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/groups/{id}/hides":{"post":{"tags":["Groups"],"summary":"Hide a group","operationId":"hideGroup","parameters":[{"name":"id","in":"path","description":"Group identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"delete":{"tags":["Groups"],"summary":"Show a group","operationId":"showGroup","parameters":[{"name":"id","in":"path","description":"Group identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/groups/{id}/reports":{"post":{"tags":["Groups"],"summary":"Report a group","operationId":"reportGroup","parameters":[{"name":"id","in":"path","description":"Group identifier.","required":true,"type":"number"},{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PostGroupReportBody"}}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/groups/{id}/invitations":{"post":{"tags":["Invitations"],"summary":"Post a groupInvitation to some accounts","operationId":"inviteAccounts","parameters":[{"name":"id","in":"path","description":"Group Identifier.","required":true,"type":"number"},{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PostInvitationAccountsBody"}}],"responses":{"201":{"description":"Successful operation.","schema":{"$ref":"#/definitions/InvitationCreated"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/accounts/{accountId}/groups/{groupId}/invitations":{"post":{"tags":["Accounts"],"summary":"Create a groupInvitation to a account","operationId":"inviteAccount","parameters":[{"name":"accountId","in":"path","description":"Account Identifier.","required":true,"type":"number"},{"name":"groupId","in":"path","description":"Group Identifier.","required":true,"type":"number"}],"responses":{"201":{"description":"Successful operation.","schema":{"$ref":"#/definitions/InvitationCreated"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/invitations/{id}/accept":{"post":{"tags":["Invitations"],"summary":"Accept a groupInvitation","operationId":"acceptInvitation","parameters":[{"name":"id","in":"path","description":"Group groupInvitation identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/invitations/{id}/reject":{"post":{"tags":["Invitations"],"summary":"Reject a groupInvitation","operationId":"rejectInvitation","parameters":[{"name":"id","in":"path","description":"Group groupInvitation identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/mediums/:*":{"get":{"tags":["Mediums"],"summary":"Get a medium","operationId":"findMedium","parameters":[],"responses":{"200":{"description":"Successful operation."}}}},"/mediums":{"post":{"tags":["Mediums"],"summary":"Upload a medium","operationId":"uploadMedium","consumes":["multipart/form-data"],"parameters":[{"name":"file","in":"formData","description":"Upload a medium file","required":true,"type":"file"}],"responses":{"201":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/MediumCreated"}}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/mediums/{id}":{"delete":{"tags":["Mediums"],"summary":"Delete a medium","operationId":"deleteMedium","parameters":[{"name":"id","in":"path","description":"Medium identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Medium not found."}}}},"/messages":{"get":{"tags":["Messages"],"summary":"Search messages","operationId":"findMessages","parameters":[{"name":"id","in":"query","description":"Group identifier.","required":true,"type":"number"},{"name":"since","in":"query","description":"Filters messages which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of messages. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of entries returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"},{"name":"ascending","in":"query","description":"Order by posted time.","required":true,"type":"boolean"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Message"}}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"delete":{"tags":["Messages"],"summary":"Delete messages form a group","operationId":"deleteMessage","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/DeleteMessagesBody"}}],"responses":{"200":{"description":"Successful operation."}}}},"/messages/text":{"post":{"tags":["Messages"],"summary":"Send a text to a group","operationId":"postText","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PostTextBody"}}],"responses":{"201":{"description":"Successful operation.","schema":{"$ref":"#/definitions/Message"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/messages/medium":{"post":{"tags":["Messages"],"summary":"Send a medium to a group","operationId":"postMedium","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PostMediumBody"}}],"responses":{"201":{"description":"Successful operation.","schema":{"$ref":"#/definitions/Message"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/accounts/{id}/mutes":{"post":{"tags":["Accounts"],"summary":"Mute a account","operationId":"muteAccount","parameters":[{"name":"id","in":"path","description":"Account Identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"delete":{"tags":["Accounts"],"summary":"Unmute a account","operationId":"unmuteAccount","parameters":[{"name":"id","in":"path","description":"Account identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/notifications":{"get":{"tags":["Notifications"],"summary":"Search notifications","operationId":"findNotifications","parameters":[{"name":"since","in":"query","description":"Filters notifications which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of notifications. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of notifications returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"},{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/GetNotificationsBody"}}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Notification"}}}}}},"/accounts/{id}/requests":{"post":{"tags":["Accounts"],"summary":"Create a friend request to a account","operationId":"request","parameters":[{"name":"id","in":"path","description":"Account Identifier.","required":true,"type":"number"}],"responses":{"201":{"description":"Successful operation.","schema":{"$ref":"#/definitions/FriendRequestCreated"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"delete":{"tags":["Accounts"],"summary":"Remove a friend request to a account","operationId":"unrequest","parameters":[{"name":"id","in":"path","description":"Account identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/requests/{id}/accept":{"post":{"tags":["FriendRequests"],"summary":"Accept a friend request","operationId":"acceptRequest","parameters":[{"name":"id","in":"path","description":"Friend request Identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/requests/{id}/reject":{"post":{"tags":["FriendRequests"],"summary":"Reject a friend request","operationId":"rejectRequest","parameters":[{"name":"id","in":"path","description":"Friend request Identifier.","required":true,"type":"number"}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/session":{"get":{"tags":["Session"],"summary":"Get basic information about session account","operationId":"findSession","parameters":[],"responses":{"200":{"description":"Successful operation.","schema":{"$ref":"#/definitions/Account"}}}},"delete":{"tags":["Session"],"summary":"Sign out","operationId":"signOut","parameters":[],"responses":{"200":{"description":"Successful operation."}}}},"/session/account_name/{accountName}":{"get":{"tags":["Session"],"summary":"Confirm account name exist","operationId":"existAccountName","parameters":[{"name":"accountName","in":"path","description":"Account name.","required":true,"type":"string"}],"responses":{"200":{"description":"Successful operation.","schema":{"$ref":"#/definitions/AccountNameNotExists"}}}}},"/session/account_name":{"put":{"tags":["Session"],"summary":"Update the account name","operationId":"updateAccountName","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PutSessionAccountNameBody"}}],"responses":{"200":{"description":"Successful operation."},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}}}}},"/session/password":{"put":{"tags":["Session"],"summary":"Update the password","operationId":"updatePassword","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PutSessionPasswordBody"}}],"responses":{"200":{"description":"Successful operation."}}}},"/session/profile":{"put":{"tags":["Session"],"summary":"Update the profile","operationId":"updateProfile","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PutSessionProfileBody"}}],"responses":{"200":{"description":"Successful operation."}}}},"/session/profile_image":{"put":{"tags":["Session"],"summary":"Update the profile image","operationId":"updateProfileImage","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PutSessionProfileImageBody"}}],"responses":{"200":{"description":"Successful operation."},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"delete":{"tags":["Session"],"summary":"Remove the profile image","operationId":"deleteProfileImage","parameters":[],"responses":{"200":{"description":"Successful operation."}}}},"/session/blocks":{"get":{"tags":["Blocks"],"summary":"Get blocking accounts list","operationId":"findBlockingAccounts","parameters":[{"name":"since","in":"query","description":"Filters accounts which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of accounts. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of accounts returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Account"}}}}}},"/session/feeds":{"get":{"tags":["Session"],"summary":"Get feeds list session account posted","operationId":"findSessionFeeds","parameters":[{"name":"since","in":"query","description":"Filters feeds which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of feeds. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of feeds returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Feed"}}}}}},"/session/likes":{"get":{"tags":["Session"],"summary":"Get feeds list session account set a like","operationId":"findSessionFeedsLiked","parameters":[{"name":"since","in":"query","description":"Filters entries which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of feeds. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of feeds returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Feed"}}}}}},"/session/follows":{"get":{"tags":["Session"],"summary":"Get accounts list session account followed","operationId":"findSessionFollow","parameters":[{"name":"since","in":"query","description":"Filters follower which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of follower. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of follower returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Account"}}}}}},"/session/followers":{"get":{"tags":["Session"],"summary":"Get accounts list session account is followed by","operationId":"findSessionFollowers","parameters":[{"name":"since","in":"query","description":"Filters followers which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of followers. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of followers returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Account"}}}}}},"/session/friends":{"get":{"tags":["Session"],"summary":"Get friends list","operationId":"findSessionFriends","parameters":[{"name":"since","in":"query","description":"Filters friends which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of friends. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of friends returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"},{"name":"sortType","in":"query","description":"Friends which sorted by accountName or friendsAt. Default is friendsAt.","required":false,"type":"string","enum":["friendsAt","accountName"]}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Account"}}}}}},"/session/groups":{"get":{"tags":["Session"],"summary":"Get groups list session account groupJoined","operationId":"findSessionGroups","parameters":[{"name":"since","in":"query","description":"Filters groups which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of groups. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of groups returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Group"}}}}}},"/session/hides":{"get":{"tags":["Session"],"summary":"Get hidden groups list session account groupJoined","operationId":"findHiddenGroups","parameters":[{"name":"since","in":"query","description":"Filters groups which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of groups. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of groups returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Group"}}}}}},"/session/invitations":{"get":{"tags":["Session"],"summary":"Get invitations list session account received","operationId":"findGroupInvitations","parameters":[{"name":"since","in":"query","description":"Filters invitations which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of group invitations. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of invitations returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/GroupInvitation"}}}}}},"/session/mutes":{"get":{"tags":["Session"],"summary":"Get accounts list session account muted","operationId":"findMutingAccounts","parameters":[{"name":"since","in":"query","description":"Filters accounts which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of accounts. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of accounts returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/Account"}}}}}},"/session/requests":{"get":{"tags":["Session"],"summary":"Get friend requests list session account created or received","operationId":"findFriendRequests","parameters":[{"name":"since","in":"query","description":"Filters friend requests which started on since or later.","required":false,"type":"number"},{"name":"offset","in":"query","description":"The offset of friend request. By default the value is 0.","required":false,"type":"number"},{"name":"count","in":"query","description":"Maximum number of friend request returned on one result page. By default the value is 20 entries. The page size can never be larger than 50.","required":false,"type":"number"},{"name":"received","in":"query","description":"Filters friend requests which you have received or sent.","required":true,"type":"boolean"}],"responses":{"200":{"description":"Successful operation.","schema":{"type":"array","items":{"$ref":"#/definitions/FriendRequest"}}}}}},"/session/push/notification":{"get":{"tags":["Settings"],"summary":"Get push notification settings","operationId":"findPushNotification","parameters":[],"responses":{"200":{"description":"Successful operation.","schema":{"$ref":"#/definitions/PushNotificationSetting"}}}},"put":{"tags":["Settings"],"summary":"Update ths push notification settings","operationId":"updatePushNotification","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PutNotificationSettingBody"}}],"responses":{"200":{"description":"Successful operation."}}}},"/session/push/token":{"post":{"tags":["Settings"],"summary":"Update device push token","operationId":"updatePushToken","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PostDevicePushTokenBody"}}],"responses":{"200":{"description":"Successful operation."}}}},"/session/status":{"post":{"tags":["Settings"],"summary":"Update device status","operationId":"updateDeviceStatus","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PostActiveStatusBody"}}],"responses":{"200":{"description":"Successful operation."}}}},"/sessions":{"get":{"tags":["Sessions"],"summary":"Sign in","operationId":"signIn","parameters":[{"name":"accountName","in":"query","description":"Account name.","required":true,"type":"string"},{"name":"password","in":"query","description":"Account password.","required":true,"type":"string"},{"name":"udid","in":"query","description":"Unique Device Identifier.","required":true,"type":"string"},{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/GetSignInBody"}}],"responses":{"200":{"description":"Successful operation.","schema":{"$ref":"#/definitions/Account"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/CactaceaErrors"}}}},"post":{"tags":["Sessions"],"summary":"Sign up","operationId":"signUp","parameters":[{"in":"body","name":"body","required":true,"schema":{"$ref":"#/definitions/PostSignUpBody"}}],"responses":{"200":{"description":"Successful operation.","schema":{"$ref":"#/definitions/Account"}}}}},"/ping":{"get":{"tags":["System"],"summary":"Health checking","operationId":"ping","parameters":[],"responses":{"200":{"description":"Service is operating normally"}}}}},"securityDefinitions":{"api_key":{"type":"apiKey","name":"x-api-key","in":"header"},"authorization":{"type":"apiKey","name":"Authorization","in":"header"}},"definitions":{"CactaceaError":{"type":"object","required":["code","message"],"properties":{"code":{"type":"integer","format":"int64","description":"code"},"message":{"type":"string","description":"message"}}},"Account":{"type":"object","required":["accountName","blocking","displayName","feedCount","follow","followCount","followerCount","friendCount","friendRequestInProgress","id","isFollower","isFriend","muting"],"properties":{"id":{"type":"number"},"accountName":{"type":"string"},"displayName":{"type":"string"},"profileImageUrl":{"type":"string"},"isFriend":{"type":"boolean"},"friendRequestInProgress":{"type":"boolean"},"follow":{"type":"boolean"},"isFollower":{"type":"boolean"},"followCount":{"type":"integer","format":"int64"},"followerCount":{"type":"integer","format":"int64"},"friendCount":{"type":"integer","format":"int64"},"feedCount":{"type":"integer","format":"int64"},"muting":{"type":"boolean"},"blocking":{"type":"boolean"},"web":{"type":"string"},"birthday":{"type":"number"},"location":{"type":"string"},"bio":{"type":"string"},"joinedAt":{"type":"number"},"next":{"type":"number"}}},"AccountId":{"type":"object","required":["value"],"properties":{"value":{"type":"integer","format":"int64"}}},"CactaceaErrors":{"type":"object","required":["errors"],"properties":{"errors":{"type":"array","items":{"$ref":"#/definitions/CactaceaError"}}},"example":{"errors":[{"code":40012,"message":"Invalid Account name or password."},{"code":40002,"message":"Account terminated."}]}},"AccountStatus":{"type":"object","required":["id","status"],"properties":{"id":{"type":"number"},"status":{"type":"string","enum":["active","inactive"]}}},"PutAccountDisplayNameBody":{"type":"object","properties":{"displayName":{"type":"string","description":"Display name that each account shown."}},"example":"io.github.cactacea.backend.server.models.requests.account.PutAccountDisplayName"},"Feed":{"type":"object","required":["commentCount","contentDeleted","contentWarning","id","likeCount","message","postedAt"],"properties":{"id":{"type":"number"},"message":{"type":"string"},"mediums":{"type":"array","items":{"$ref":"#/definitions/Medium"}},"tags":{"type":"array","items":{"type":"string"}},"account":{"$ref":"#/definitions/Account"},"likeCount":{"type":"integer","format":"int64"},"commentCount":{"type":"integer","format":"int64"},"contentWarning":{"type":"boolean"},"contentDeleted":{"type":"boolean"},"postedAt":{"type":"integer","format":"int64"},"likedAt":{"type":"number"},"next":{"type":"number"}}},"Medium":{"type":"object","required":["contentDeleted","contentWarning","height","id","mediumType","size","uri","width"],"properties":{"id":{"type":"number"},"uri":{"type":"string"},"width":{"type":"integer","format":"int64"},"height":{"type":"integer","format":"int64"},"size":{"type":"integer","format":"int64"},"thumbnailUrl":{"type":"string"},"mediumType":{"type":"string","enum":["image","movie"]},"contentWarning":{"type":"boolean"},"contentDeleted":{"type":"boolean"}}},"GroupId":{"type":"object","required":["value"],"properties":{"value":{"type":"integer","format":"int64"}}},"Group":{"type":"object","required":["accountCount","authorityType","id","invitationOnly","organizedAt","privacyType"],"properties":{"id":{"type":"number"},"name":{"type":"string"},"message":{"$ref":"#/definitions/Message"},"invitationOnly":{"type":"boolean"},"privacyType":{"type":"string","enum":["everyone","follows","followers","friends"]},"authorityType":{"type":"string","enum":["owner","member"]},"accountCount":{"type":"integer","format":"int64"},"lastPostedAt":{"type":"number"},"organizedAt":{"type":"integer","format":"int64"},"next":{"type":"number"}}},"Message":{"type":"object","required":["account","accountCount","contentDeleted","contentWarning","groupId","id","messageType","postedAt","readAccountCount","unread"],"properties":{"id":{"type":"number"},"groupId":{"type":"number"},"messageType":{"type":"string","enum":["text","medium","stamp","groupInvitation","groupJoined","groupLeft"]},"message":{"type":"string"},"medium":{"$ref":"#/definitions/Medium"},"account":{"$ref":"#/definitions/Account"},"unread":{"type":"boolean"},"accountCount":{"type":"integer","format":"int64"},"readAccountCount":{"type":"integer","format":"int64"},"contentWarning":{"type":"boolean"},"contentDeleted":{"type":"boolean"},"postedAt":{"type":"integer","format":"int64"},"next":{"type":"number"}}},"PostAccountReportBody":{"type":"object","required":["reportType"],"properties":{"reportType":{"type":"string","description":"Report type.","enum":["none","spam","inappropriate"]},"reportContent":{"type":"string","description":"Description about this report."}},"example":"io.github.cactacea.backend.server.models.requests.account.PostAccountReport"},"FeedId":{"type":"object","required":["value"],"properties":{"value":{"type":"integer","format":"int64"}}},"Comment":{"type":"object","required":["account","contentDeleted","contentWarning","id","likeCount","message","postedAt"],"properties":{"id":{"type":"number"},"replyId":{"type":"number"},"message":{"type":"string"},"account":{"$ref":"#/definitions/Account"},"likeCount":{"type":"integer","format":"int64"},"contentWarning":{"type":"boolean"},"contentDeleted":{"type":"boolean"},"postedAt":{"type":"integer","format":"int64"},"next":{"type":"number"}}},"PostCommentBody":{"type":"object","required":["id","message"],"properties":{"id":{"type":"number","description":"Feed Identifier."},"message":{"type":"string","description":"A message will be posted."}},"example":"io.github.cactacea.backend.server.models.requests.comment.PostComment"},"CommentCreated":{"type":"object","required":["id"],"properties":{"id":{"type":"number"}}},"CommentId":{"type":"object","required":["value"],"properties":{"value":{"type":"integer","format":"int64"}}},"PostCommentReportBody":{"type":"object","required":["reportType"],"properties":{"reportType":{"type":"string","description":"Report type.","enum":["none","spam","inappropriate"]},"reportContent":{"type":"string","description":"Description about this report."}},"example":"io.github.cactacea.backend.server.models.requests.comment.PostCommentReport"},"PostFeedBody":{"type":"object","required":["contentWarning","message","privacyType"],"properties":{"message":{"type":"string","description":"A feed message will be posted."},"mediumIds":{"type":"array","description":"Medium identifiers of attached.","items":{"type":"number"}},"tags":{"type":"array","description":"Tags of feed.","items":{"type":"string"}},"privacyType":{"type":"string","description":"Feed privacy type.","enum":["everyone","followers","friends","self"]},"contentWarning":{"type":"boolean","description":"Content warning."},"expiration":{"type":"number","description":"Expiration of a feed."}},"example":"io.github.cactacea.backend.server.models.requests.feed.PostFeed"},"FeedCreated":{"type":"object","required":["id"],"properties":{"id":{"type":"number"}}},"PutFeedBody":{"type":"object","required":["contentWarning","message","privacyType"],"properties":{"message":{"type":"string","description":"A feed message will be posted."},"mediumIds":{"type":"array","description":"Medium identifiers of attached.","items":{"type":"number"}},"tags":{"type":"array","description":"Tags of feed.","items":{"type":"string"}},"privacyType":{"type":"string","description":"Group privacy type.","enum":["everyone","followers","friends","self"]},"contentWarning":{"type":"boolean","description":"Content warning."},"expiration":{"type":"number","description":"Expiration of a feed."}},"example":"io.github.cactacea.backend.server.models.requests.feed.PutFeed"},"PostFeedReportBody":{"type":"object","required":["reportType"],"properties":{"reportType":{"type":"string","description":"Report type.","enum":["none","spam","inappropriate"]},"reportContent":{"type":"string","description":"Description about this report."}},"example":"io.github.cactacea.backend.server.models.requests.feed.PostFeedReport"},"PostGroupBody":{"type":"object","required":["authorityType","byInvitationOnly","name","privacyType"],"properties":{"name":{"type":"string","description":"Group name."},"byInvitationOnly":{"type":"boolean","description":"Only invited accounts can join in."},"privacyType":{"type":"string","description":"Which accounts can join in.","enum":["everyone","follows","followers","friends"]},"authorityType":{"type":"string","description":"Which accounts can manage a group.","enum":["owner","member"]}},"example":"io.github.cactacea.backend.server.models.requests.group.PostGroup"},"GroupCreated":{"type":"object","required":["id"],"properties":{"id":{"type":"number"}}},"PutGroupBody":{"type":"object","required":["authorityType","byInvitationOnly","name","privacyType"],"properties":{"name":{"type":"string","description":"Group name."},"byInvitationOnly":{"type":"boolean","description":"Only invited accounts can join in."},"privacyType":{"type":"string","description":"Which accounts can join in.","enum":["everyone","follows","followers","friends"]},"authorityType":{"type":"string","description":"Which accounts can manage a group.","enum":["owner","member"]}},"example":"io.github.cactacea.backend.server.models.requests.group.PutGroup"},"PostGroupReportBody":{"type":"object","required":["reportContent","reportType"],"properties":{"reportType":{"type":"string","description":"Report type.","enum":["none","spam","inappropriate"]},"reportContent":{"type":"string","description":"Description about this report."}},"example":"io.github.cactacea.backend.server.models.requests.group.PostGroupReport"},"PostInvitationAccountsBody":{"type":"object","properties":{"accountIds":{"type":"array","description":"Account Identifies.","items":{"type":"number"}}},"example":"io.github.cactacea.backend.server.models.requests.account.PostInvitationAccounts"},"InvitationCreated":{"type":"object","required":["id"],"properties":{"id":{"type":"number"}}},"GroupInvitationId":{"type":"object","required":["value"],"properties":{"value":{"type":"integer","format":"int64"}}},"MediumCreated":{"type":"object","required":["id","uri"],"properties":{"id":{"type":"number"},"uri":{"type":"string"}}},"MediumId":{"type":"object","required":["value"],"properties":{"value":{"type":"integer","format":"int64"}}},"PostTextBody":{"type":"object","required":["groupId","message"],"properties":{"groupId":{"type":"number","description":"Group identifier."},"message":{"type":"string","description":"A message will be posted."}},"example":"io.github.cactacea.backend.server.models.requests.message.PostText"},"PostMediumBody":{"type":"object","required":["groupId","mediumId"],"properties":{"groupId":{"type":"number","description":"Group identifier."},"mediumId":{"type":"number","description":"A medium will be posted."}},"example":"io.github.cactacea.backend.server.models.requests.message.PostMedium"},"DeleteMessagesBody":{"type":"object","required":["id"],"properties":{"id":{"type":"number","description":"Group identifier."}},"example":"io.github.cactacea.backend.server.models.requests.message.DeleteMessages"},"GetNotificationsBody":{"type":"object","example":"io.github.cactacea.backend.server.models.requests.notification.GetNotifications"},"Notification":{"type":"object","required":["id","message","notificationType","notifiedAt","url"],"properties":{"id":{"type":"number"},"notificationType":{"type":"string","enum":["operator","groupInvitation","friendRequest","feed","feedReply","commentReply"]},"contentId":{"type":"number"},"message":{"type":"string"},"url":{"type":"string"},"notifiedAt":{"type":"integer","format":"int64"},"next":{"type":"number"}}},"FriendRequestCreated":{"type":"object","required":["id"],"properties":{"id":{"type":"number"}}},"FriendRequestId":{"type":"object","required":["value"],"properties":{"value":{"type":"integer","format":"int64"}}},"AccountNameNotExists":{"type":"object","required":["accountName","exists"],"properties":{"accountName":{"type":"string"},"exists":{"type":"boolean"}}},"PutSessionAccountNameBody":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Account name."}},"example":"io.github.cactacea.backend.server.models.requests.session.PutSessionAccountName"},"PutSessionPasswordBody":{"type":"object","required":["password"],"properties":{"password":{"type":"string","description":"Account new password."}},"example":"io.github.cactacea.backend.server.models.requests.session.PutSessionPassword"},"PutSessionProfileBody":{"type":"object","required":["displayName"],"properties":{"displayName":{"type":"string","description":"Display name."},"web":{"type":"string","description":"Profile URL."},"birthday":{"type":"number","description":"Account birthday."},"location":{"type":"string","description":"Account address."},"bio":{"type":"string","description":"Account bio."}},"example":"io.github.cactacea.backend.server.models.requests.session.PutSessionProfile"},"PutSessionProfileImageBody":{"type":"object","required":["id"],"properties":{"id":{"type":"number","description":"Medium identifier."}},"example":"io.github.cactacea.backend.server.models.requests.session.PutSessionProfileImage"},"GroupInvitation":{"type":"object","required":["account","group","id","invitationStatus","invitedAt"],"properties":{"id":{"type":"number"},"group":{"$ref":"#/definitions/Group"},"account":{"$ref":"#/definitions/Account"},"invitationStatus":{"type":"string","enum":["noResponded","accepted","rejected"]},"invitedAt":{"type":"integer","format":"int64"},"next":{"type":"number"}}},"FriendRequest":{"type":"object","required":["account","id","requestStatus","requestedAt"],"properties":{"id":{"type":"number"},"account":{"$ref":"#/definitions/Account"},"requestStatus":{"type":"string","enum":["noResponded","accepted","rejected"]},"requestedAt":{"type":"integer","format":"int64"},"next":{"type":"number"}}},"PushNotificationSetting":{"type":"object","required":["comment","feed","friendRequest","groupInvitation","groupMessage","message","showMessage"],"properties":{"feed":{"type":"boolean"},"comment":{"type":"boolean"},"friendRequest":{"type":"boolean"},"message":{"type":"boolean"},"groupMessage":{"type":"boolean"},"groupInvitation":{"type":"boolean"},"showMessage":{"type":"boolean"}}},"PutNotificationSettingBody":{"type":"object","required":["comment","feed","friendRequest","groupInvitation","groupMessage","message","showMessage"],"properties":{"feed":{"type":"boolean","description":"Notice new follower feed arrived."},"comment":{"type":"boolean","description":"Notice new comment arrived."},"friendRequest":{"type":"boolean","description":"Notice new friend request arrived."},"message":{"type":"boolean","description":"Notice new message arrived."},"groupMessage":{"type":"boolean","description":"Notice new group message arrived."},"groupInvitation":{"type":"boolean","description":"Notice new group groupInvitation arrived."},"showMessage":{"type":"boolean","description":"Show messages text on notification."}},"example":"io.github.cactacea.backend.server.models.requests.setting.PutNotificationSetting"},"PostDevicePushTokenBody":{"type":"object","required":["udid"],"properties":{"pushToken":{"type":"string","description":"Push notification token."},"udid":{"type":"string","description":"Unique Device Identifier."}},"example":"io.github.cactacea.backend.server.models.requests.setting.PostDevicePushToken"},"PostActiveStatusBody":{"type":"object","required":["status","udid"],"properties":{"status":{"type":"string","description":"Device status.","enum":["active","inactive"]},"udid":{"type":"string","description":"Unique Device Identifier."}},"example":"io.github.cactacea.backend.server.models.requests.setting.PostActiveStatus"},"PostSignUpBody":{"type":"object","required":["accountName","password","udid"],"properties":{"accountName":{"type":"string","description":"Account name."},"password":{"type":"string","description":"Account password."},"udid":{"type":"string","description":"Unique Device Identifier."}},"example":"io.github.cactacea.backend.server.models.requests.sessions.PostSignUp"},"GetSignInBody":{"type":"object","example":"io.github.cactacea.backend.server.models.requests.sessions.GetSignIn"}}} \ No newline at end of file diff --git a/generate_sdks.sh b/generate_sdks.sh index 2bad1cce..256cb1e9 100755 --- a/generate_sdks.sh +++ b/generate_sdks.sh @@ -7,7 +7,7 @@ swagger-codegen generate \ --type-mappings number=Int64 \ --language-specific-primitives Int16,Int32,Int64,NSDate \ --additional-properties projectName="Cactacea" \ - --additional-properties podVersion="19.6.2" \ + --additional-properties podVersion="19.7.0" \ --additional-properties podSummary="Cactacea iOS SDK" \ --additional-properties podDescription="An iOS library to interface with Cactacea backend API" \ --additional-properties podSource="" \ diff --git a/libs/filhouette/README.md b/libs/filhouette/README.md index 149704c4..40840e19 100644 --- a/libs/filhouette/README.md +++ b/libs/filhouette/README.md @@ -9,14 +9,14 @@ An authentication library for Finatra Framework applications forked from [`Silho To get started, add a dependency on filhouette depending if you are building a Finatra server. ``` -"io.github.cactacea" %% "filhouette" % "19.6.2" +"io.github.cactacea" %% "filhouette" % "19.7.0" ``` Or similarily with Maven: ``` io.github.cactacea filhouette_2.12 - 19.6.2 + 19.7.0 ``` diff --git a/libs/finachat/README.md b/libs/finachat/README.md index 4abf4646..73a7b215 100644 --- a/libs/finachat/README.md +++ b/libs/finachat/README.md @@ -9,14 +9,14 @@ WebSocket based chat library for Finagle To get started, add a dependency on finachat depending if you are using a server based on Finagle. ``` -"io.github.cactacea" %% "finachat" % "19.6.2" +"io.github.cactacea" %% "finachat" % "19.7.0" ``` Or similarily with Maven: ``` io.github.cactacea finachat_2.12 - 19.6.2 + 19.7.0 ``` diff --git a/libs/finagger/README.md b/libs/finagger/README.md index 9b658b0e..8fb468d3 100644 --- a/libs/finagger/README.md +++ b/libs/finagger/README.md @@ -9,14 +9,14 @@ Swagger support for Finatra To get started, add a dependency on finagger depending if you are using a server based on Finatra and swagger. ``` -"io.github.cactacea" %% "finagger" % "19.6.2" +"io.github.cactacea" %% "finagger" % "19.7.0" ``` Or similarily with Maven: ``` io.github.cactacea finagger_2.12 - 19.6.2 + 19.7.0 ``` diff --git a/libs/finasocket/README.md b/libs/finasocket/README.md index c4db48c0..5111d139 100644 --- a/libs/finasocket/README.md +++ b/libs/finasocket/README.md @@ -9,14 +9,14 @@ WebSocket support for Finagle To get started, add a dependency on finasocket depending if you are using a server based on Finagle and WebSocket. ``` -"io.github.cactacea" %% "finasocket" % "19.6.2" +"io.github.cactacea" %% "finasocket" % "19.7.0" ``` Or similarily with Maven: ``` io.github.cactacea finasocket_2.12 - 19.6.2 + 19.7.0 ``` diff --git a/plugin/README.md b/plugin/README.md index 3b2254e6..0558629b 100644 --- a/plugin/README.md +++ b/plugin/README.md @@ -9,5 +9,5 @@ Update to your project/plugin.sbt file to include: ``` -addSbtPlugin("io.github.cactacea" % "plugin" % "19.6.2") +addSbtPlugin("io.github.cactacea" % "plugin" % "19.7.0") ``` \ No newline at end of file diff --git a/server/README.md b/server/README.md index 1ec15ab8..7e751581 100644 --- a/server/README.md +++ b/server/README.md @@ -10,13 +10,13 @@ Server To get started, add a dependency on cactacea depending. ``` -"io.github.cactacea" %% "server" % "19.6.2" +"io.github.cactacea" %% "server" % "19.7.0" ``` Or similarily with Maven: ``` io.github.cactacea server_2.12 - 19.6.2 + 19.7.0 ``` diff --git a/utils/README.md b/utils/README.md index c8642a69..8f4c36e6 100644 --- a/utils/README.md +++ b/utils/README.md @@ -10,13 +10,13 @@ Utils To get started, add a dependency on cactacea depending. ``` -"io.github.cactacea" %% "utils" % "19.6.2" +"io.github.cactacea" %% "utils" % "19.7.0" ``` Or similarily with Maven: ``` io.github.cactacea utils_2.12 - 19.6.2 + 19.7.0 ``` diff --git a/version.sbt b/version.sbt index cb3ed83f..8751e339 100644 --- a/version.sbt +++ b/version.sbt @@ -1 +1 @@ -version in ThisBuild := "19.6.2" +version in ThisBuild := "19.7.0"