feat: simplify testing structure into api and e2e categories

This commit is contained in:
bipproduction
2026-02-08 11:01:55 +08:00
parent 4640b72ca6
commit 0f71798389
18 changed files with 1006 additions and 62 deletions

View File

@@ -6,6 +6,14 @@
"version": "1.0.0"
},
"paths": {
"/api/health": {
"get": {
"operationId": "getApiHealth",
"responses": {
"200": {}
}
}
},
"/api/session": {
"get": {
"operationId": "getApiSession",
@@ -1168,6 +1176,243 @@
}
}
}
},
"/api/profile/update": {
"post": {
"parameters": [],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"user": {
"type": "object",
"required": [
"id",
"name",
"email",
"image",
"role"
],
"properties": {
"id": {
"type": "string"
},
"name": {},
"email": {
"type": "string"
},
"image": {},
"role": {}
}
}
},
"required": [
"user"
]
}
},
"multipart/form-data": {
"schema": {
"type": "object",
"properties": {
"user": {
"type": "object",
"required": [
"id",
"name",
"email",
"image",
"role"
],
"properties": {
"id": {
"type": "string"
},
"name": {},
"email": {
"type": "string"
},
"image": {},
"role": {}
}
}
},
"required": [
"user"
]
}
},
"text/plain": {
"schema": {
"type": "object",
"properties": {
"user": {
"type": "object",
"required": [
"id",
"name",
"email",
"image",
"role"
],
"properties": {
"id": {
"type": "string"
},
"name": {},
"email": {
"type": "string"
},
"image": {},
"role": {}
}
}
},
"required": [
"user"
]
}
}
}
},
"401": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string"
}
},
"required": [
"error"
]
}
},
"multipart/form-data": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string"
}
},
"required": [
"error"
]
}
},
"text/plain": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string"
}
},
"required": [
"error"
]
}
}
}
},
"500": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string"
}
},
"required": [
"error"
]
}
},
"multipart/form-data": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string"
}
},
"required": [
"error"
]
}
},
"text/plain": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string"
}
},
"required": [
"error"
]
}
}
}
}
},
"operationId": "postApiProfileUpdate",
"summary": "Update user profile",
"description": "Update the authenticated user's name or profile image",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"image": {
"type": "string"
}
}
}
},
"multipart/form-data": {
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"image": {
"type": "string"
}
}
}
},
"text/plain": {
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"image": {
"type": "string"
}
}
}
}
}
}
}
}
},
"components": {