Skip to content

Commit

Permalink
Generate api client
Browse files Browse the repository at this point in the history
  • Loading branch information
ruibaby committed Oct 8, 2024
1 parent 0aa9dc9 commit 7f19a29
Show file tree
Hide file tree
Showing 14 changed files with 269 additions and 464 deletions.
141 changes: 35 additions & 106 deletions api-docs/openapi/v3_0/aggregated.json
Original file line number Diff line number Diff line change
Expand Up @@ -2651,30 +2651,6 @@
]
}
},
"/apis/api.console.halo.run/v1alpha1/plugin-presets": {
"get": {
"description": "List all plugin presets in the system.",
"operationId": "ListPluginPresets",
"responses": {
"default": {
"content": {
"*/*": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Plugin"
}
}
}
},
"description": "default response"
}
},
"tags": [
"PluginV1alpha1Console"
]
}
},
"/apis/api.console.halo.run/v1alpha1/plugins": {
"get": {
"description": "List plugins using query criteria and sort params",
Expand Down Expand Up @@ -4309,38 +4285,6 @@
]
}
},
"/apis/api.console.halo.run/v1alpha1/system/initialize": {
"post": {
"description": "Initialize system",
"operationId": "initialize",
"requestBody": {
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/SystemInitializationRequest"
}
}
}
},
"responses": {
"201": {
"description": "System initialization successfully.",
"headers": {
"Location": {
"description": "Redirect URL.",
"schema": {
"type": "string"
},
"style": "simple"
}
}
}
},
"tags": [
"SystemV1alpha1Console"
]
}
},
"/apis/api.console.halo.run/v1alpha1/tags": {
"get": {
"description": "List Post Tags.",
Expand Down Expand Up @@ -14722,6 +14666,41 @@
]
}
},
"/apis/uc.api.auth.halo.run/v1alpha1/user-connections/{registerId}/disconnect": {
"put": {
"description": "Disconnect my connection from a third-party platform.",
"operationId": "DisconnectMyConnection",
"parameters": [
{
"description": "The registration ID of the third-party platform.",
"in": "path",
"name": "registerId",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"default": {
"content": {
"*/*": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UserConnection"
}
}
}
},
"description": "default response"
}
},
"tags": [
"UserConnectionV1alpha1Uc"
]
}
},
"/apis/uc.api.content.halo.run/v1alpha1/attachments": {
"post": {
"description": "Create attachment for the given post.",
Expand Down Expand Up @@ -20589,9 +20568,6 @@
}
},
"PostStatus": {
"required": [
"phase"
],
"type": "object",
"properties": {
"commentsCount": {
Expand Down Expand Up @@ -22437,9 +22413,6 @@
}
},
"SinglePageStatus": {
"required": [
"phase"
],
"type": "object",
"properties": {
"commentsCount": {
Expand Down Expand Up @@ -22839,29 +22812,6 @@
},
"description": "The subscriber to be notified"
},
"SystemInitializationRequest": {
"required": [
"password",
"username"
],
"type": "object",
"properties": {
"email": {
"type": "string"
},
"password": {
"minLength": 3,
"type": "string"
},
"siteTitle": {
"type": "string"
},
"username": {
"minLength": 1,
"type": "string"
}
}
},
"Tag": {
"required": [
"apiVersion",
Expand Down Expand Up @@ -23625,36 +23575,15 @@
},
"UserConnectionSpec": {
"required": [
"accessToken",
"displayName",
"providerUserId",
"registrationId",
"username"
],
"type": "object",
"properties": {
"accessToken": {
"type": "string"
},
"avatarUrl": {
"type": "string"
},
"displayName": {
"type": "string"
},
"expiresAt": {
"type": "string",
"format": "date-time"
},
"profileUrl": {
"type": "string"
},
"providerUserId": {
"type": "string"
},
"refreshToken": {
"type": "string"
},
"registrationId": {
"type": "string"
},
Expand Down
85 changes: 0 additions & 85 deletions api-docs/openapi/v3_0/apis_console.api_v1alpha1.json
Original file line number Diff line number Diff line change
Expand Up @@ -518,30 +518,6 @@
]
}
},
"/apis/api.console.halo.run/v1alpha1/plugin-presets": {
"get": {
"description": "List all plugin presets in the system.",
"operationId": "ListPluginPresets",
"responses": {
"default": {
"content": {
"*/*": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Plugin"
}
}
}
},
"description": "default response"
}
},
"tags": [
"PluginV1alpha1Console"
]
}
},
"/apis/api.console.halo.run/v1alpha1/plugins": {
"get": {
"description": "List plugins using query criteria and sort params",
Expand Down Expand Up @@ -2176,38 +2152,6 @@
]
}
},
"/apis/api.console.halo.run/v1alpha1/system/initialize": {
"post": {
"description": "Initialize system",
"operationId": "initialize",
"requestBody": {
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/SystemInitializationRequest"
}
}
}
},
"responses": {
"201": {
"description": "System initialization successfully.",
"headers": {
"Location": {
"description": "Redirect URL.",
"schema": {
"type": "string"
},
"style": "simple"
}
}
}
},
"tags": [
"SystemV1alpha1Console"
]
}
},
"/apis/api.console.halo.run/v1alpha1/tags": {
"get": {
"description": "List Post Tags.",
Expand Down Expand Up @@ -5486,9 +5430,6 @@
}
},
"PostStatus": {
"required": [
"phase"
],
"type": "object",
"properties": {
"commentsCount": {
Expand Down Expand Up @@ -6018,9 +5959,6 @@
}
},
"SinglePageStatus": {
"required": [
"phase"
],
"type": "object",
"properties": {
"commentsCount": {
Expand Down Expand Up @@ -6090,29 +6028,6 @@
}
}
},
"SystemInitializationRequest": {
"required": [
"password",
"username"
],
"type": "object",
"properties": {
"email": {
"type": "string"
},
"password": {
"minLength": 3,
"type": "string"
},
"siteTitle": {
"type": "string"
},
"username": {
"minLength": 1,
"type": "string"
}
}
},
"Tag": {
"required": [
"apiVersion",
Expand Down
27 changes: 0 additions & 27 deletions api-docs/openapi/v3_0/apis_extension.api_v1alpha1.json
Original file line number Diff line number Diff line change
Expand Up @@ -11310,9 +11310,6 @@
}
},
"PostStatus": {
"required": [
"phase"
],
"type": "object",
"properties": {
"commentsCount": {
Expand Down Expand Up @@ -12497,9 +12494,6 @@
}
},
"SinglePageStatus": {
"required": [
"phase"
],
"type": "object",
"properties": {
"commentsCount": {
Expand Down Expand Up @@ -13261,36 +13255,15 @@
},
"UserConnectionSpec": {
"required": [
"accessToken",
"displayName",
"providerUserId",
"registrationId",
"username"
],
"type": "object",
"properties": {
"accessToken": {
"type": "string"
},
"avatarUrl": {
"type": "string"
},
"displayName": {
"type": "string"
},
"expiresAt": {
"type": "string",
"format": "date-time"
},
"profileUrl": {
"type": "string"
},
"providerUserId": {
"type": "string"
},
"refreshToken": {
"type": "string"
},
"registrationId": {
"type": "string"
},
Expand Down
Loading

0 comments on commit 7f19a29

Please sign in to comment.