Skip to content

Commit

Permalink
update API Like and Bookmark
Browse files Browse the repository at this point in the history
  • Loading branch information
tuonghuynh11 committed Jan 28, 2024
1 parent c08563a commit 14c75ee
Show file tree
Hide file tree
Showing 24 changed files with 1,516 additions and 20 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ DB_HASHTAGS_COLLECTION="hashtags"
DB_BOOKMARKS_COLLECTION="bookmarks"
DB_LIKES_COLLECTION="likes"
DB_CONVERSATIONS_COLLECTION="conversations"
DB_NOTIFICATIONS_COLLECTION="notifications"

PASSWORD_SECRET= ''
JWT_SECRET_ACCESS_TOKEN = ''
Expand Down
67 changes: 65 additions & 2 deletions openapi/components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ components:
properties:
email:
type: string
example: admin1@gmail.com
example: hmt1@gmail.com
password:
type: string
example: Duoc123!
example: '@Aa1234567'
SuccessAuthentication:
type: object
properties:
Expand Down Expand Up @@ -298,3 +298,66 @@ components:
type: string
format: date-time
description: Thời gian cập nhật tweet
LikeRequestBody:
type: object
properties:
tweet_id:
type: string
format: MongoId
description: Tweet ID
example: 64be0ad2e43d2464394feedb
BookmarkRequestBody:
type: object
properties:
tweet_id:
type: string
format: MongoId
description: Tweet ID
example: 64be0ad2e43d2464394feedb
UnTweetResponseBody:
type: object
properties:
_id:
type: string
format: MongoId
example: 64be0ad2e43d2464394feedb
tweet_id:
type: string
format: MongoId
example: 64be0ad2e43d2464394feedb
user_id:
type: string
format: MongoId
example: 64be0ad2e43d2464394feedb
created_at:
type: string
example: 2021-09-30T15:00:00.000Z
Conversation:
type: object
properties:
_id:
type: string
format: MongoId
example: 64be0ad2e43d2464394feedb
sender_id:
type: string
format: MongoId
example: 64be0ad2e43d2464394feedb
receiver_id:
type: string
format: MongoId
example: 64be0ad2e43d2464394feedb
content:
type: string
example: 'Hello world!'
created_at:
type: string
example: 2021-09-30T15:00:00.000Z
updated_at:
type: string
example: 2021-09-30T15:00:00.000Z
securitySchemes:
BearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
Loading

0 comments on commit 14c75ee

Please sign in to comment.