improved request model name

pull/836/head
Jingyi 2024-06-27 11:14:37 +08:00
parent c8226ec8ca
commit 549c700732
28 changed files with 34 additions and 27 deletions

View File

@ -75,7 +75,7 @@ export class DeleteCheckpointsApi {
`${this.baseId}-model`,
{
restApi: this.router.api,
modelName: this.baseId,
modelName: `${this.baseId}Request`,
description: `Request Model ${this.baseId}`,
schema: {
schema: JsonSchemaVersion.DRAFT7,

View File

@ -273,7 +273,7 @@ export class UpdateCheckPointApi {
private createRequestBodyModel(): Model {
return new Model(this.scope, `${this.baseId}-model`, {
restApi: this.router.api,
modelName: this.baseId,
modelName: `${this.baseId}Request`,
description: `Request Model ${this.baseId}`,
schema: {
schema: JsonSchemaVersion.DRAFT7,

View File

@ -270,7 +270,7 @@ export class CreateExecuteApi {
private createRequestBodyModel(): Model {
return new Model(this.scope, `${this.baseId}-model`, {
restApi: this.router.api,
modelName: this.baseId,
modelName: `${this.baseId}Request`,
description: `Request Model ${this.baseId}`,
schema: {
schema: JsonSchemaVersion.DRAFT7,

View File

@ -134,7 +134,7 @@ export class DeleteExecutesApi {
`${this.baseId}-model`,
{
restApi: this.router.api,
modelName: this.baseId,
modelName: `${this.baseId}Request`,
description: `Request Model ${this.baseId}`,
schema: {
schema: JsonSchemaVersion.DRAFT7,

View File

@ -150,7 +150,7 @@ export class MergeExecuteApi {
private createRequestBodyModel(): Model {
return new Model(this.scope, `${this.baseId}-model`, {
restApi: this.router.api,
modelName: this.baseId,
modelName: `${this.baseId}Request`,
description: `Request Model ${this.baseId}`,
schema: {
schema: JsonSchemaVersion.DRAFT7,

View File

@ -148,7 +148,7 @@ export class PrepareApi {
private createRequestBodyModel(): Model {
return new Model(this.scope, `${this.baseId}-model`, {
restApi: this.router.api,
modelName: this.baseId,
modelName: `${this.baseId}Request`,
description: `Request Model ${this.baseId}`,
schema: {
schema: JsonSchemaVersion.DRAFT7,

View File

@ -150,7 +150,7 @@ export class SyncMsgApi {
private createRequestBodyModel(): Model {
return new Model(this.scope, `${this.baseId}-model`, {
restApi: this.router.api,
modelName: this.baseId,
modelName: `${this.baseId}Request`,
description: `Request Model ${this.baseId}`,
schema: {
schema: JsonSchemaVersion.DRAFT7,

View File

@ -173,7 +173,7 @@ export class CreateDatasetApi {
private createRequestBodyModel(): Model {
return new Model(this.scope, `${this.baseId}-model`, {
restApi: this.router.api,
modelName: this.baseId,
modelName: `${this.baseId}Request`,
description: `Request Model ${this.baseId}`,
schema: {
schema: JsonSchemaVersion.DRAFT7,

View File

@ -77,7 +77,7 @@ export class CropDatasetApi {
private createRequestBodyModel(): Model {
return new Model(this.scope, `${this.baseId}-model`, {
restApi: this.router.api,
modelName: this.baseId,
modelName: `${this.baseId}Request`,
description: `Request Model ${this.baseId}`,
schema: {
schema: JsonSchemaVersion.DRAFT7,

View File

@ -84,7 +84,7 @@ export class DeleteDatasetsApi {
`${this.baseId}-model`,
{
restApi: this.router.api,
modelName: this.baseId,
modelName: `${this.baseId}Request`,
description: `Request Model ${this.baseId}`,
schema: {
schema: JsonSchemaVersion.DRAFT7,

View File

@ -162,7 +162,7 @@ export class UpdateDatasetApi {
private createRequestBodyModel() {
return new Model(this.scope, `${this.baseId}-model`, {
restApi: this.router.api,
modelName: this.baseId,
modelName: `${this.baseId}Request`,
description: `Request Model ${this.baseId}`,
schema: {
schema: JsonSchemaVersion.DRAFT7,

View File

@ -168,7 +168,7 @@ export class CreateEndpointApi {
return new Model(this.scope, `${this.baseId}-model`, {
restApi: this.router.api,
contentType: 'application/json',
modelName: this.baseId,
modelName: `${this.baseId}Request`,
description: `Request Model ${this.baseId}`,
schema: {
schema: JsonSchemaVersion.DRAFT7,

View File

@ -60,7 +60,7 @@ export class DeleteEndpointsApi {
private createRequestBodyModel(): Model {
return new Model(this.scope, `${this.baseId}-model`, {
restApi: this.router.api,
modelName: this.baseId,
modelName: `${this.baseId}Request`,
description: `Request Model ${this.baseId}`,
schema: {
schema: JsonSchemaVersion.DRAFT7,

View File

@ -211,7 +211,7 @@ export class CreateInferenceJobApi {
private createRequestBodyModel(): Model {
return new Model(this.scope, `${this.id}-model`, {
restApi: this.router.api,
modelName: this.id,
modelName: `${this.id}Request`,
description: `Request Model ${this.id}`,
schema: {
schema: JsonSchemaVersion.DRAFT7,

View File

@ -78,7 +78,7 @@ export class DeleteInferenceJobsApi {
`${this.baseId}-model`,
{
restApi: this.router.api,
modelName: this.baseId,
modelName: `${this.baseId}Request`,
description: `Request Model ${this.baseId}`,
schema: {
schema: JsonSchemaVersion.DRAFT7,

View File

@ -86,7 +86,7 @@ export class CreateRoleApi {
private createRequestBodyModel(): Model {
return new Model(this.scope, `${this.baseId}-model`, {
restApi: this.router.api,
modelName: this.baseId,
modelName: `${this.baseId}Request`,
description: `Request Model ${this.baseId}`,
schema: {
schema: JsonSchemaVersion.DRAFT7,

View File

@ -69,7 +69,7 @@ export class DeleteRolesApi {
`${this.baseId}-model`,
{
restApi: this.router.api,
modelName: this.baseId,
modelName: `${this.baseId}Request`,
description: `Request Model ${this.baseId}`,
schema: {
schema: JsonSchemaVersion.DRAFT7,

View File

@ -113,7 +113,7 @@ export class CreateSchemaApi {
return new Model(this.scope, `${this.baseId}-model`, {
restApi: this.router.api,
contentType: 'application/json',
modelName: this.baseId,
modelName: `${this.baseId}Request`,
description: `Request Model ${this.baseId}`,
schema: {
schema: JsonSchemaVersion.DRAFT7,

View File

@ -61,7 +61,7 @@ export class DeleteSchemasApi {
private createRequestBodyModel(): Model {
return new Model(this.scope, `${this.baseId}-model`, {
restApi: this.router.api,
modelName: this.baseId,
modelName: `${this.baseId}Request`,
description: `Request Model ${this.baseId}`,
schema: {
schema: JsonSchemaVersion.DRAFT7,

View File

@ -68,7 +68,7 @@ export class UpdateSchemaApi {
return new Model(this.scope, `${this.baseId}-model`, {
restApi: this.router.api,
contentType: 'application/json',
modelName: this.baseId,
modelName: `${this.baseId}Request`,
description: `Request Model ${this.baseId}`,
schema: {
schema: JsonSchemaVersion.DRAFT7,

View File

@ -261,7 +261,7 @@ export class CreateTrainingJobApi {
private createRequestBodyModel(): Model {
return new Model(this.scope, `${this.id}-model`, {
restApi: this.props.router.api,
modelName: this.id,
modelName: `${this.id}Request`,
description: `Request Model ${this.id}`,
schema: {
schema: JsonSchemaVersion.DRAFT7,

View File

@ -78,7 +78,7 @@ export class DeleteTrainingJobsApi {
`${this.baseId}-model`,
{
restApi: this.router.api,
modelName: this.baseId,
modelName: `${this.baseId}Request`,
description: `Request Model ${this.baseId}`,
schema: {
schema: JsonSchemaVersion.DRAFT7,

View File

@ -62,7 +62,7 @@ export class CreateUserApi {
private createRequestBodyModel(): Model {
return new Model(this.scope, `${this.baseId}-model`, {
restApi: this.router.api,
modelName: this.baseId,
modelName: `${this.baseId}Request`,
description: `Request Model ${this.baseId}`,
schema: {
schema: JsonSchemaVersion.DRAFT7,

View File

@ -59,7 +59,7 @@ export class DeleteUsersApi {
private createRequestBodyModel(): Model {
return new Model(this.scope, `${this.baseId}-model`, {
restApi: this.router.api,
modelName: this.baseId,
modelName: `${this.baseId}Request`,
description: `Request Model ${this.baseId}`,
schema: {
schema: JsonSchemaVersion.DRAFT7,

View File

@ -120,7 +120,7 @@ export class CreateWorkflowApi {
return new Model(this.scope, `${this.baseId}-model`, {
restApi: this.router.api,
contentType: 'application/json',
modelName: this.baseId,
modelName: `${this.baseId}Request`,
description: `Request Model ${this.baseId}`,
schema: {
schema: JsonSchemaVersion.DRAFT7,

View File

@ -62,7 +62,7 @@ export class DeleteWorkflowsApi {
private createRequestBodyModel(): Model {
return new Model(this.scope, `${this.baseId}-model`, {
restApi: this.router.api,
modelName: this.baseId,
modelName: `${this.baseId}Request`,
description: `Request Model ${this.baseId}`,
schema: {
schema: JsonSchemaVersion.DRAFT7,

View File

@ -123,5 +123,4 @@ export class ApiModels {
});
}
}

View File

@ -257,6 +257,14 @@ operations = {
header_user_name
]
),
"MergeExecute": APISchema(
summary="Merge Executes",
tags=["Executes"],
description="Merge specify Executes",
parameters=[
header_user_name
]
),
"GetApiOAS": APISchema(
summary="Get OAS",
description="Get OAS json schema",