operationId: GetServerVersion
responses:
'200':
description: version of the server
content:
text/plain:
schema:
type: string
example: "0.4.0-dev"
/user-list:
get:
operationId: GetUserList
parameters:
- name: limit
in: query
required: false
schema:
type: integer
format: int32
default: 50
- name: offset
in: query
required: false
schema:
type: integer
format: int32
default: 0
responses:
'200':
description: ""
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/UserSimple'
post:
description: It creates a new user. If it's the first user, the user becomes an admin.
operationId: CreateUser
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UserCreation'
responses:
'200':
description: The response has no body.
/user-list/{user}:
get:
operationId: GetUser
parameters:
- name: user
in: path
required: true
description: user id
schema:
type: string
- name: limit
in: query
required: false
schema:
type: integer
format: int32
default: 50
- name: offset
in: query
required: false
schema:
type: integer
format: int32
default: 0
responses:
'200':
description: ""
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/UserDetail'
/user-list/{user}/ai-model-list:
get:
description: This was intended for chat interface, but the plan has changed and we're not developing chat interface for ragithub. Please use `GET /ai-model-list` API instead.
put:
description: This was intended for chat interface, but the plan has changed and we're not developing chat interface for ragithub. Please use `PUT /ai-model-list` API instead.
/user-list/{user}/api-key-list:
get:
operationId: GetApiKeyList
parameters:
- name: user
in: path
required: true
description: user id
schema:
type: string
responses:
'200':
description: ""
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/ApiKey'
post:
operationId: CreateApiKey
parameters:
- name: user
in: path
required: true
description: user id
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ApiKeyCreation'
responses:
'200':
description: ""
content:
text/plain:
schema:
type: string
description: created api key
/repo-list/{user}:
get:
operationId: GetRepoList
parameters:
- name: user
in: path
required: true
description: user id
schema:
type: string
- name: limit
in: query
required: false
schema:
type: integer
format: int32
default: 50
- name: offset
in: query
required: false
schema:
type: integer
format: int32
default: