Remove search engine, add event list api
Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
@@ -1,31 +1,21 @@
|
||||
basePath: /api/v1
|
||||
definitions:
|
||||
data.User:
|
||||
data.EventIndexDoc:
|
||||
properties:
|
||||
allow_public:
|
||||
type: boolean
|
||||
avatar:
|
||||
description:
|
||||
type: string
|
||||
bio:
|
||||
end_time:
|
||||
type: string
|
||||
email:
|
||||
event_id:
|
||||
type: string
|
||||
id:
|
||||
type: integer
|
||||
nickname:
|
||||
name:
|
||||
type: string
|
||||
permission_level:
|
||||
type: integer
|
||||
subtitle:
|
||||
start_time:
|
||||
type: string
|
||||
user_id:
|
||||
type: string
|
||||
username:
|
||||
type: string
|
||||
uuid:
|
||||
type:
|
||||
type: string
|
||||
type: object
|
||||
data.UserSearchDoc:
|
||||
data.UserIndexDoc:
|
||||
properties:
|
||||
avatar:
|
||||
type: string
|
||||
@@ -108,7 +98,7 @@ definitions:
|
||||
checkin_code:
|
||||
type: string
|
||||
type: object
|
||||
service_event.InfoResponse:
|
||||
service_event.EventInfoResponse:
|
||||
properties:
|
||||
end_time:
|
||||
type: string
|
||||
@@ -138,13 +128,6 @@ definitions:
|
||||
username:
|
||||
type: string
|
||||
type: object
|
||||
service_user.UserTableResponse:
|
||||
properties:
|
||||
user_table:
|
||||
items:
|
||||
$ref: '#/definitions/data.User'
|
||||
type: array
|
||||
type: object
|
||||
utils.RespStatus:
|
||||
properties:
|
||||
code:
|
||||
@@ -608,7 +591,7 @@ paths:
|
||||
- $ref: '#/definitions/utils.RespStatus'
|
||||
- properties:
|
||||
data:
|
||||
$ref: '#/definitions/service_event.InfoResponse'
|
||||
$ref: '#/definitions/service_event.EventInfoResponse'
|
||||
type: object
|
||||
"400":
|
||||
description: Invalid Input
|
||||
@@ -642,26 +625,47 @@ paths:
|
||||
summary: Get Event Information
|
||||
tags:
|
||||
- Event
|
||||
/user/full:
|
||||
/event/list:
|
||||
get:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Fetches all user records without pagination. This is typically
|
||||
used for administrative overview or data export.
|
||||
description: Fetches a list of events with support for pagination via limit
|
||||
and offset. Data is retrieved directly from the database for consistency.
|
||||
parameters:
|
||||
- description: Maximum number of events to return (default 20)
|
||||
in: query
|
||||
name: limit
|
||||
type: string
|
||||
- description: Number of events to skip
|
||||
in: query
|
||||
name: offset
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: Successful retrieval of full user table
|
||||
description: Successful paginated list retrieval
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/utils.RespStatus'
|
||||
- properties:
|
||||
data:
|
||||
$ref: '#/definitions/service_user.UserTableResponse'
|
||||
items:
|
||||
$ref: '#/definitions/data.EventIndexDoc'
|
||||
type: array
|
||||
type: object
|
||||
"400":
|
||||
description: Invalid Input (Missing offset or malformed parameters)
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/utils.RespStatus'
|
||||
- properties:
|
||||
data:
|
||||
type: object
|
||||
type: object
|
||||
"500":
|
||||
description: Internal Server Error (Database Error)
|
||||
description: Internal Server Error (Database query failed)
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/utils.RespStatus'
|
||||
@@ -671,9 +675,9 @@ paths:
|
||||
type: object
|
||||
security:
|
||||
- ApiKeyAuth: []
|
||||
summary: Get Full User Table
|
||||
summary: List Events
|
||||
tags:
|
||||
- User
|
||||
- Event
|
||||
/user/info:
|
||||
get:
|
||||
consumes:
|
||||
@@ -751,7 +755,7 @@ paths:
|
||||
- properties:
|
||||
data:
|
||||
items:
|
||||
$ref: '#/definitions/data.UserSearchDoc'
|
||||
$ref: '#/definitions/data.UserIndexDoc'
|
||||
type: array
|
||||
type: object
|
||||
"400":
|
||||
|
||||
Reference in New Issue
Block a user