-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for group posts controls (#315)
* Added support for group post controls * Changed nullable field properties on non-nullables --------- Co-authored-by: Veerce <[email protected]>
- Loading branch information
Showing
7 changed files
with
149 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
title: CreateGroupPostRequest | ||
type: object | ||
properties: | ||
title: | ||
type: string | ||
description: Post title | ||
minLength: 1 | ||
example: "Event is starting soon!" | ||
text: | ||
type: string | ||
description: Post text | ||
minLength: 1 | ||
example: "Come join us for the event!" | ||
imageId: | ||
$ref: ../schemas/FileID.yaml | ||
sendNotification: | ||
type: boolean | ||
description: Send notification to group members. | ||
default: false | ||
example: false | ||
roleIds: | ||
$ref: ../schemas/GroupRoleIDList.yaml | ||
visibility: | ||
$ref: ../schemas/GroupPostVisibility.yaml | ||
required: | ||
- title | ||
- text | ||
- sendNotification | ||
- visibility |
11 changes: 11 additions & 0 deletions
11
openapi/components/responses/groups/DeleteGroupPostResponse.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
description: Response after deleting a group post. | ||
content: | ||
application/json: | ||
schema: | ||
$ref: ../../schemas/Success.yaml | ||
examples: | ||
Deleted Group Post: | ||
value: | ||
success: | ||
message: Group Post was deleted! | ||
status_code: 200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
description: Returns a GroupPost object. | ||
content: | ||
application/json: | ||
schema: | ||
$ref: ../../schemas/GroupPost.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
title: GroupPost | ||
type: object | ||
properties: | ||
id: | ||
$ref: ./NotificationID.yaml | ||
groupId: | ||
$ref: ./GroupID.yaml | ||
authorId: | ||
$ref: ./UserID.yaml | ||
editorId: | ||
$ref: ./UserID.yaml | ||
nullable: true | ||
visibility: | ||
$ref: ./GroupPostVisibility.yaml | ||
roleId: | ||
$ref: ./GroupRoleIDList.yaml | ||
title: | ||
type: string | ||
text: | ||
type: string | ||
imageId: | ||
$ref: ./FileID.yaml | ||
nullable: true | ||
imageUrl: | ||
type: string | ||
nullable: true | ||
createdAt: | ||
type: string | ||
format: date-time | ||
updatedAt: | ||
type: string | ||
format: date-time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
example: public | ||
title: GroupPostVisibility | ||
type: string | ||
enum: | ||
- group | ||
- public |