use reactions from post
This commit is contained in:
parent
72389136a7
commit
83835d374b
3 changed files with 80 additions and 70 deletions
|
@ -26,9 +26,9 @@ export interface paths {
|
|||
[name: string]: unknown
|
||||
}
|
||||
content: {
|
||||
'text/plain': components['schemas']['GetAllPublicPostsResponse']
|
||||
'application/json': components['schemas']['GetAllPublicPostsResponse']
|
||||
'text/json': components['schemas']['GetAllPublicPostsResponse']
|
||||
'text/plain': components['schemas']['LoadPostsResponse']
|
||||
'application/json': components['schemas']['LoadPostsResponse']
|
||||
'text/json': components['schemas']['LoadPostsResponse']
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -68,6 +68,41 @@ export interface paths {
|
|||
patch?: never
|
||||
trace?: never
|
||||
}
|
||||
'/posts/{postId}': {
|
||||
parameters: {
|
||||
query?: never
|
||||
header?: never
|
||||
path?: never
|
||||
cookie?: never
|
||||
}
|
||||
get?: never
|
||||
put?: never
|
||||
post?: never
|
||||
delete: {
|
||||
parameters: {
|
||||
query?: never
|
||||
header?: never
|
||||
path: {
|
||||
postId: string
|
||||
}
|
||||
cookie?: never
|
||||
}
|
||||
requestBody?: never
|
||||
responses: {
|
||||
/** @description OK */
|
||||
200: {
|
||||
headers: {
|
||||
[name: string]: unknown
|
||||
}
|
||||
content?: never
|
||||
}
|
||||
}
|
||||
}
|
||||
options?: never
|
||||
head?: never
|
||||
patch?: never
|
||||
trace?: never
|
||||
}
|
||||
'/media': {
|
||||
parameters: {
|
||||
query?: never
|
||||
|
@ -87,7 +122,8 @@ export interface paths {
|
|||
requestBody: {
|
||||
content: {
|
||||
'multipart/form-data': {
|
||||
file?: components['schemas']['IFormFile']
|
||||
/** Format: binary */
|
||||
file?: string
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -387,24 +423,21 @@ export interface components {
|
|||
height: number | null
|
||||
}
|
||||
CreatePostResponse: {
|
||||
/** Format: uuid */
|
||||
postId: string
|
||||
post: components['schemas']['PostDto']
|
||||
}
|
||||
CreateSignupCodeRequest: {
|
||||
code: string
|
||||
email: string
|
||||
name: string
|
||||
}
|
||||
GetAllPublicPostsResponse: {
|
||||
ListSignupCodesResult: {
|
||||
signupCodes: components['schemas']['SignupCodeDto'][]
|
||||
}
|
||||
LoadPostsResponse: {
|
||||
posts: components['schemas']['PostDto'][]
|
||||
/** Format: uuid */
|
||||
next: string | null
|
||||
}
|
||||
/** Format: binary */
|
||||
IFormFile: string
|
||||
ListSignupCodesResult: {
|
||||
signupCodes: components['schemas']['SignupCodeDto'][]
|
||||
}
|
||||
LoginRequest: {
|
||||
username: string
|
||||
password: string
|
||||
|
@ -426,8 +459,10 @@ export interface components {
|
|||
postId: string
|
||||
content: string
|
||||
media: components['schemas']['PostMediaDto'][]
|
||||
reactions: components['schemas']['PostReactionDto'][]
|
||||
/** Format: date-time */
|
||||
createdAt: string
|
||||
possibleReactions: string[]
|
||||
}
|
||||
PostMediaDto: {
|
||||
/** Format: uri */
|
||||
|
@ -437,6 +472,12 @@ export interface components {
|
|||
/** Format: int32 */
|
||||
height: number | null
|
||||
}
|
||||
PostReactionDto: {
|
||||
emoji: string
|
||||
/** Format: int32 */
|
||||
count: number
|
||||
didReact: boolean
|
||||
}
|
||||
RefreshUserResult: {
|
||||
/** Format: uuid */
|
||||
userId: string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue