|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558 |
- definitions:
- requestparams.CommunityParams:
- properties:
- avatar:
- description: Avatar is optional.
- type: string
- description:
- description: Description is optional.
- type: string
- email:
- type: string
- name:
- type: string
- required:
- - avatar
- - email
- - name
- type: object
- requestparams.CreateBotParams:
- properties:
- avatar:
- type: string
- bot_addr:
- type: string
- bot_port:
- type: integer
- bot_token:
- type: string
- description:
- type: string
- nickname:
- type: string
- required:
- - avatar
- - bot_addr
- - bot_port
- - bot_token
- - description
- - nickname
- type: object
- requestparams.CreateUserParams:
- properties:
- avatar:
- description: Avatar is optional.
- type: string
- email:
- type: string
- nickname:
- type: string
- password:
- type: string
- required:
- - avatar
- - email
- - nickname
- - password
- type: object
- requestparams.DeleteUserParams:
- properties:
- uuid:
- type: string
- required:
- - uuid
- type: object
- requestparams.GetCommunityInfoParams:
- properties:
- uuid:
- type: string
- required:
- - uuid
- type: object
- requestparams.LoginParamsWithAccount:
- properties:
- email:
- type: string
- password:
- type: string
- required:
- - email
- - password
- type: object
- requestparams.RegisterAdminParams:
- properties:
- code:
- type: string
- community_info:
- $ref: '#/definitions/requestparams.CommunityParams'
- user_info:
- $ref: '#/definitions/requestparams.CreateUserParams'
- required:
- - code
- - community_info
- - user_info
- type: object
- requestparams.RegisterStaffParams:
- properties:
- user_info:
- $ref: '#/definitions/requestparams.CreateUserParams'
- required:
- - user_info
- type: object
- requestparams.SendToParams:
- properties:
- email:
- type: string
- required:
- - email
- type: object
- response.Response:
- properties:
- code:
- type: integer
- data: {}
- msg:
- type: string
- type: object
- info:
- contact: {}
- description: OpenKF Server API Docs.
- title: OpenKF Server
- version: v0.2.0
- paths:
- /api/v1/admin/bot/create:
- post:
- description: Create a new bot
- parameters:
- - description: CreateBotParams
- in: body
- name: data
- required: true
- schema:
- $ref: '#/definitions/requestparams.CreateBotParams'
- produces:
- - application/json
- responses:
- "200":
- description: Success
- schema:
- allOf:
- - $ref: '#/definitions/response.Response'
- - properties:
- msg:
- type: string
- type: object
- security:
- - ApiKeyAuth: []
- summary: CreateBot
- tags:
- - bot
- /api/v1/admin/bot/delete:
- post:
- description: delete bot
- responses:
- "200":
- description: Success
- schema:
- allOf:
- - $ref: '#/definitions/response.Response'
- - properties:
- msg:
- type: string
- type: object
- security:
- - ApiKeyAuth: []
- summary: DeleteBot
- tags:
- - bot
- /api/v1/admin/bot/list:
- post:
- description: get community bot info
- responses:
- "200":
- description: Success
- schema:
- allOf:
- - $ref: '#/definitions/response.Response'
- - properties:
- msg:
- type: string
- type: object
- security:
- - ApiKeyAuth: []
- summary: ListBot
- tags:
- - bot
- /api/v1/admin/bot/update:
- post:
- description: update bot info
- responses:
- "200":
- description: Success
- schema:
- allOf:
- - $ref: '#/definitions/response.Response'
- - properties:
- msg:
- type: string
- type: object
- security:
- - ApiKeyAuth: []
- summary: UpdateBot
- tags:
- - bot
- /api/v1/admin/staff/create:
- post:
- description: Create a new staff
- parameters:
- - description: RegisterStaffParams
- in: body
- name: data
- required: true
- schema:
- $ref: '#/definitions/requestparams.RegisterStaffParams'
- produces:
- - application/json
- responses:
- "200":
- description: Success
- schema:
- allOf:
- - $ref: '#/definitions/response.Response'
- - properties:
- msg:
- type: string
- type: object
- security:
- - ApiKeyAuth: []
- summary: CreateStaff
- tags:
- - user
- /api/v1/admin/staff/delete:
- post:
- description: Delete a new staff
- parameters:
- - description: DeleteUserParams
- in: body
- name: data
- required: true
- schema:
- $ref: '#/definitions/requestparams.DeleteUserParams'
- produces:
- - application/json
- responses:
- "200":
- description: Success
- schema:
- allOf:
- - $ref: '#/definitions/response.Response'
- - properties:
- msg:
- type: string
- type: object
- summary: DeleteStaff
- tags:
- - user
- /api/v1/common/file/upload:
- post:
- description: upload a file
- parameters:
- - description: file
- in: formData
- name: file
- required: true
- type: file
- produces:
- - application/json
- responses:
- "200":
- description: Success
- schema:
- allOf:
- - $ref: '#/definitions/response.Response'
- - properties:
- msg:
- type: string
- type: object
- summary: UploadFile
- tags:
- - common
- /api/v1/community/create:
- post:
- description: Create a new community
- parameters:
- - description: Community
- in: body
- name: data
- required: true
- schema:
- $ref: '#/definitions/requestparams.CommunityParams'
- produces:
- - application/json
- responses:
- "200":
- description: Success
- schema:
- allOf:
- - $ref: '#/definitions/response.Response'
- - properties:
- msg:
- type: string
- type: object
- summary: CreateCommunity
- tags:
- - community
- /api/v1/community/info:
- post:
- description: get community info
- parameters:
- - description: GetCommunityInfoParams
- in: body
- name: data
- required: true
- schema:
- $ref: '#/definitions/requestparams.GetCommunityInfoParams'
- produces:
- - application/json
- responses:
- "200":
- description: Success
- schema:
- allOf:
- - $ref: '#/definitions/response.Response'
- - properties:
- msg:
- type: string
- type: object
- summary: GetCommunityInfo
- tags:
- - community
- /api/v1/community/me:
- get:
- description: get my community info
- produces:
- - application/json
- responses:
- "200":
- description: Success
- schema:
- allOf:
- - $ref: '#/definitions/response.Response'
- - properties:
- msg:
- type: string
- type: object
- security:
- - ApiKeyAuth: []
- summary: GetMyCommunityInfo
- tags:
- - community
- /api/v1/community/update:
- post:
- description: get my community info
- produces:
- - application/json
- responses:
- "200":
- description: Success
- schema:
- allOf:
- - $ref: '#/definitions/response.Response'
- - properties:
- msg:
- type: string
- type: object
- security:
- - ApiKeyAuth: []
- summary: GetMyCommunityInfo
- tags:
- - community
- /api/v1/email/code:
- post:
- description: Use email to send verification code
- parameters:
- - description: Email address
- in: body
- name: data
- required: true
- schema:
- $ref: '#/definitions/requestparams.SendToParams'
- produces:
- - application/json
- responses:
- "200":
- description: Success
- schema:
- allOf:
- - $ref: '#/definitions/response.Response'
- - properties:
- msg:
- type: string
- type: object
- summary: SendCode
- tags:
- - mail
- /api/v1/login/account:
- post:
- description: login with account
- parameters:
- - description: LoginParamsWithAccount
- in: body
- name: data
- required: true
- schema:
- $ref: '#/definitions/requestparams.LoginParamsWithAccount'
- produces:
- - application/json
- responses:
- "200":
- description: Success
- schema:
- allOf:
- - $ref: '#/definitions/response.Response'
- - properties:
- msg:
- type: string
- type: object
- summary: AccountLogin
- tags:
- - user
- /api/v1/openim/callback:
- post:
- description: Support OpenIM callback
- produces:
- - application/json
- responses:
- "200":
- description: Success
- schema:
- allOf:
- - $ref: '#/definitions/response.Response'
- - properties:
- msg:
- type: string
- type: object
- summary: OpenIMCallback
- tags:
- - openim
- /api/v1/register/admin:
- post:
- description: Create a new admin
- parameters:
- - description: RegisterAdminParams
- in: body
- name: data
- required: true
- schema:
- $ref: '#/definitions/requestparams.RegisterAdminParams'
- produces:
- - application/json
- responses:
- "200":
- description: Success
- schema:
- allOf:
- - $ref: '#/definitions/response.Response'
- - properties:
- msg:
- type: string
- type: object
- summary: AdminRegister
- tags:
- - user
- /api/v1/user/info:
- post:
- description: get user info
- responses:
- "200":
- description: Success
- schema:
- allOf:
- - $ref: '#/definitions/response.Response'
- - properties:
- msg:
- type: string
- type: object
- security:
- - ApiKeyAuth: []
- summary: GetUserInfo
- tags:
- - user
- /api/v1/user/me:
- get:
- description: get my user info
- responses:
- "200":
- description: Success
- schema:
- allOf:
- - $ref: '#/definitions/response.Response'
- - properties:
- msg:
- type: string
- type: object
- security:
- - ApiKeyAuth: []
- summary: GetMyInfo
- tags:
- - user
- /api/v1/user/update:
- post:
- description: update user info
- responses:
- "200":
- description: Success
- schema:
- allOf:
- - $ref: '#/definitions/response.Response'
- - properties:
- msg:
- type: string
- type: object
- security:
- - ApiKeyAuth: []
- summary: UpdateInfo
- tags:
- - user
- /api/v1/user/update-password:
- post:
- description: update user password
- responses:
- "200":
- description: Success
- schema:
- allOf:
- - $ref: '#/definitions/response.Response'
- - properties:
- msg:
- type: string
- type: object
- security:
- - ApiKeyAuth: []
- summary: UpdatePassword
- tags:
- - user
- /api/v1/user/userlist:
- post:
- description: get community user info
- responses:
- "200":
- description: Success
- schema:
- allOf:
- - $ref: '#/definitions/response.Response'
- - properties:
- msg:
- type: string
- type: object
- security:
- - ApiKeyAuth: []
- summary: GetCommunityUserList
- tags:
- - user
- securityDefinitions:
- ApiKeyAuth:
- in: header
- name: Authorization
- type: apiKey
- swagger: "2.0"
|