1
0

test seven

This commit is contained in:
2024-04-11 06:11:26 +09:00
parent 1d5cb2ad9f
commit 833fbe5dbc
42 changed files with 15150 additions and 22 deletions

View File

@ -1077,6 +1077,355 @@
}
}
},
"/sevs": {
"get": {
"tags": [
"Sev"
],
"summary": "List Sevs",
"description": "List Sevs.",
"operationId": "listSev",
"parameters": [
{
"name": "page",
"in": "query",
"description": "what page to render",
"schema": {
"type": "integer",
"minimum": 1
}
},
{
"name": "itemsPerPage",
"in": "query",
"description": "item count to render per page",
"schema": {
"type": "integer",
"maximum": 5000,
"minimum": 1
}
}
],
"responses": {
"200": {
"description": "result Sev list",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SevList"
}
}
}
}
},
"400": {
"$ref": "#/components/responses/400"
},
"404": {
"$ref": "#/components/responses/404"
},
"409": {
"$ref": "#/components/responses/409"
},
"500": {
"$ref": "#/components/responses/500"
}
}
},
"post": {
"tags": [
"Sev"
],
"summary": "Create a new Sev",
"description": "Creates a new Sev and persists it to storage.",
"operationId": "createSev",
"requestBody": {
"description": "Sev to create",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"password": {
"type": "string"
},
"token": {
"type": "string"
},
"limit": {
"type": "boolean"
},
"count": {
"type": "integer"
},
"handle": {
"type": "string"
},
"did": {
"type": "string"
},
"uid": {
"type": "string"
},
"cid": {
"type": "string"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"owner": {
"type": "integer"
}
},
"required": [
"password",
"owner"
]
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Sev created",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SevCreate"
}
}
}
},
"400": {
"$ref": "#/components/responses/400"
},
"409": {
"$ref": "#/components/responses/409"
},
"500": {
"$ref": "#/components/responses/500"
}
}
}
},
"/sevs/{id}": {
"get": {
"tags": [
"Sev"
],
"summary": "Find a Sev by ID",
"description": "Finds the Sev with the requested ID and returns it.",
"operationId": "readSev",
"parameters": [
{
"name": "id",
"in": "path",
"description": "ID of the Sev",
"required": true,
"schema": {
"type": "integer"
}
}
],
"responses": {
"200": {
"description": "Sev with requested ID was found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SevRead"
}
}
}
},
"400": {
"$ref": "#/components/responses/400"
},
"404": {
"$ref": "#/components/responses/404"
},
"409": {
"$ref": "#/components/responses/409"
},
"500": {
"$ref": "#/components/responses/500"
}
}
},
"delete": {
"tags": [
"Sev"
],
"summary": "Deletes a Sev by ID",
"description": "Deletes the Sev with the requested ID.",
"operationId": "deleteSev",
"parameters": [
{
"name": "id",
"in": "path",
"description": "ID of the Sev",
"required": true,
"schema": {
"type": "integer"
}
}
],
"responses": {
"204": {
"description": "Sev with requested ID was deleted"
},
"400": {
"$ref": "#/components/responses/400"
},
"404": {
"$ref": "#/components/responses/404"
},
"409": {
"$ref": "#/components/responses/409"
},
"500": {
"$ref": "#/components/responses/500"
}
}
},
"patch": {
"tags": [
"Sev"
],
"summary": "Updates a Sev",
"description": "Updates a Sev and persists changes to storage.",
"operationId": "updateSev",
"parameters": [
{
"name": "id",
"in": "path",
"description": "ID of the Sev",
"required": true,
"schema": {
"type": "integer"
}
}
],
"requestBody": {
"description": "Sev properties to update",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"token": {
"type": "string"
},
"limit": {
"type": "boolean"
},
"count": {
"type": "integer"
},
"handle": {
"type": "string"
},
"did": {
"type": "string"
},
"uid": {
"type": "string"
},
"cid": {
"type": "string"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"owner": {
"type": "integer"
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Sev updated",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SevUpdate"
}
}
}
},
"400": {
"$ref": "#/components/responses/400"
},
"404": {
"$ref": "#/components/responses/404"
},
"409": {
"$ref": "#/components/responses/409"
},
"500": {
"$ref": "#/components/responses/500"
}
}
}
},
"/sevs/{id}/owner": {
"get": {
"tags": [
"Sev"
],
"summary": "Find the attached User",
"description": "Find the attached User of the Sev with the given ID",
"operationId": "readSevOwner",
"parameters": [
{
"name": "id",
"in": "path",
"description": "ID of the Sev",
"required": true,
"schema": {
"type": "integer"
}
}
],
"responses": {
"200": {
"description": "User attached to Sev with requested ID was found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Sev_OwnerRead"
}
}
}
},
"400": {
"$ref": "#/components/responses/400"
},
"404": {
"$ref": "#/components/responses/404"
},
"409": {
"$ref": "#/components/responses/409"
},
"500": {
"$ref": "#/components/responses/500"
}
}
}
},
"/ues": {
"get": {
"tags": [
@ -1726,6 +2075,12 @@
"items": {
"type": "integer"
}
},
"sev": {
"type": "array",
"items": {
"type": "integer"
}
}
},
"required": [
@ -2032,6 +2387,12 @@
"items": {
"type": "integer"
}
},
"sev": {
"type": "array",
"items": {
"type": "integer"
}
}
}
}
@ -2218,6 +2579,70 @@
}
}
},
"/users/{id}/sev": {
"get": {
"tags": [
"User"
],
"summary": "List attached Sevs",
"description": "List attached Sevs.",
"operationId": "listUserSev",
"parameters": [
{
"name": "id",
"in": "path",
"description": "ID of the User",
"required": true,
"schema": {
"type": "integer"
}
},
{
"name": "page",
"in": "query",
"description": "what page to render",
"schema": {
"type": "integer"
}
},
{
"name": "itemsPerPage",
"in": "query",
"description": "item count to render per page",
"schema": {
"type": "integer"
}
}
],
"responses": {
"200": {
"description": "result Users list",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/User_SevList"
}
}
}
}
},
"400": {
"$ref": "#/components/responses/400"
},
"404": {
"$ref": "#/components/responses/404"
},
"409": {
"$ref": "#/components/responses/409"
},
"500": {
"$ref": "#/components/responses/500"
}
}
}
},
"/users/{id}/ue": {
"get": {
"tags": [
@ -3315,6 +3740,368 @@
"username"
]
},
"Sev": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"password": {
"type": "string"
},
"token": {
"type": "string"
},
"limit": {
"type": "boolean"
},
"count": {
"type": "integer"
},
"handle": {
"type": "string"
},
"did": {
"type": "string"
},
"uid": {
"type": "string"
},
"cid": {
"type": "string"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"owner": {
"$ref": "#/components/schemas/User"
}
},
"required": [
"id",
"password",
"owner"
]
},
"SevCreate": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"limit": {
"type": "boolean"
},
"count": {
"type": "integer"
},
"handle": {
"type": "string"
},
"did": {
"type": "string"
},
"uid": {
"type": "string"
},
"cid": {
"type": "string"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"created_at": {
"type": "string",
"format": "date-time"
}
},
"required": [
"id"
]
},
"SevList": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"limit": {
"type": "boolean"
},
"count": {
"type": "integer"
},
"handle": {
"type": "string"
},
"did": {
"type": "string"
},
"uid": {
"type": "string"
},
"cid": {
"type": "string"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"created_at": {
"type": "string",
"format": "date-time"
}
},
"required": [
"id"
]
},
"SevRead": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"limit": {
"type": "boolean"
},
"count": {
"type": "integer"
},
"handle": {
"type": "string"
},
"did": {
"type": "string"
},
"uid": {
"type": "string"
},
"cid": {
"type": "string"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"created_at": {
"type": "string",
"format": "date-time"
}
},
"required": [
"id"
]
},
"SevUpdate": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"limit": {
"type": "boolean"
},
"count": {
"type": "integer"
},
"handle": {
"type": "string"
},
"did": {
"type": "string"
},
"uid": {
"type": "string"
},
"cid": {
"type": "string"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"created_at": {
"type": "string",
"format": "date-time"
}
},
"required": [
"id"
]
},
"Sev_OwnerRead": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"username": {
"type": "string"
},
"did": {
"type": "string"
},
"member": {
"type": "boolean"
},
"book": {
"type": "boolean"
},
"manga": {
"type": "boolean"
},
"badge": {
"type": "boolean"
},
"bsky": {
"type": "boolean"
},
"mastodon": {
"type": "boolean"
},
"delete": {
"type": "boolean"
},
"handle": {
"type": "boolean"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"raid_at": {
"type": "string",
"format": "date-time"
},
"server_at": {
"type": "string",
"format": "date-time"
},
"egg_at": {
"type": "string",
"format": "date-time"
},
"luck": {
"type": "integer"
},
"luck_at": {
"type": "string",
"format": "date-time"
},
"like": {
"type": "integer"
},
"like_rank": {
"type": "integer"
},
"like_at": {
"type": "string",
"format": "date-time"
},
"fav": {
"type": "integer"
},
"ten": {
"type": "boolean"
},
"ten_su": {
"type": "integer"
},
"ten_kai": {
"type": "integer"
},
"aiten": {
"type": "integer"
},
"ten_card": {
"type": "string"
},
"ten_delete": {
"type": "string"
},
"ten_post": {
"type": "string"
},
"ten_get": {
"type": "string"
},
"ten_at": {
"type": "string",
"format": "date-time"
},
"next": {
"type": "string"
},
"room": {
"type": "integer"
},
"model": {
"type": "boolean"
},
"model_at": {
"type": "string",
"format": "date-time"
},
"model_attack": {
"type": "integer"
},
"model_limit": {
"type": "integer"
},
"model_skill": {
"type": "integer"
},
"model_mode": {
"type": "integer"
},
"model_critical": {
"type": "integer"
},
"model_critical_d": {
"type": "integer"
},
"game": {
"type": "boolean"
},
"game_test": {
"type": "boolean"
},
"game_end": {
"type": "boolean"
},
"game_account": {
"type": "boolean"
},
"game_lv": {
"type": "integer"
},
"coin": {
"type": "integer"
},
"coin_open": {
"type": "boolean"
},
"coin_at": {
"type": "string",
"format": "date-time"
}
},
"required": [
"id",
"username"
]
},
"Ue": {
"type": "object",
"properties": {
@ -3990,6 +4777,12 @@
"items": {
"$ref": "#/components/schemas/Ma"
}
},
"sev": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Sev"
}
}
},
"required": [
@ -4747,6 +5540,43 @@
"id"
]
},
"User_SevList": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"limit": {
"type": "boolean"
},
"count": {
"type": "integer"
},
"handle": {
"type": "string"
},
"did": {
"type": "string"
},
"uid": {
"type": "string"
},
"cid": {
"type": "string"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"created_at": {
"type": "string",
"format": "date-time"
}
},
"required": [
"id"
]
},
"User_UeList": {
"type": "object",
"properties": {